MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / UpdateAttachedAnimLayers

Method UpdateAttachedAnimLayers

src/Ext/Techno/Body.Internal.cpp:253–267  ·  view source on GitHub ↗

Updates layers of all animations attached to the given techno.

Source from the content-addressed store, hash-verified

251
252// Updates layers of all animations attached to the given techno.
253void TechnoExt::UpdateAttachedAnimLayers(TechnoClass* pThis)
254{
255 // Skip if has no attached animations.
256 if (!pThis->HasParachute)
257 return;
258
259 // Could possibly be faster to track the attached anims in TechnoExt but the profiler doesn't show this as a performance hog so whatever.
260 for (auto pAnim : AnimClass::Array)
261 {
262 if (pAnim->OwnerObject != pThis)
263 continue;
264
265 DisplayClass::Instance.Submit(pAnim);
266 }
267}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected