MCPcopy Create free account
hub / github.com/axmolengine/axmol / addInstanceChild

Method addInstanceChild

core/3d/MeshRenderer.cpp:735–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735void MeshRenderer::addInstanceChild(Node* child, bool active)
736{
737 for (auto&& mesh : _meshes)
738 {
739 mesh->addInstanceChild(child);
740 if (active)
741 addChild(child);
742 else
743 child->setParent(this);
744 }
745}
746
747void MeshRenderer::shrinkToFitInstances()
748{

Callers

nothing calls this directly

Calls 1

setParentMethod · 0.45

Tested by

no test coverage detected