MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setObjectMembership

Method setObjectMembership

Engine/source/ts/loader/tsShapeLoader.cpp:878–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878void TSShapeLoader::setObjectMembership(TSShape::Sequence& seq, const AppSequence* appSeq)
879{
880 seq.visMatters.clearAll(); // object visibility (size = objects.size())
881 seq.frameMatters.clearAll(); // vert animation (morph) (size = objects.size())
882 seq.matFrameMatters.clearAll(); // UV animation (size = objects.size())
883
884 for (S32 iObject = 0; iObject < shape->objects.size(); iObject++)
885 {
886 if (!appMeshes[shape->objects[iObject].startMeshIndex])
887 continue;
888
889 if (appMeshes[shape->objects[iObject].startMeshIndex]->animatesVis(appSeq))
890 seq.visMatters.set(iObject);
891 // Morph and UV animation has been deprecated
892 //if (appMeshes[shape->objects[iObject].startMeshIndex]->animatesFrame(appSeq))
893 //seq.frameMatters.set(iObject);
894 //if (appMeshes[shape->objects[iObject].startMeshIndex]->animatesMatFrame(appSeq))
895 //seq.matFrameMatters.set(iObject);
896 }
897}
898
899void TSShapeLoader::clearNodeTransformCache()
900{

Callers

nothing calls this directly

Calls 4

clearAllMethod · 0.45
sizeMethod · 0.45
animatesVisMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected