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

Method onRemove

Engine/source/T3D/tsStatic.cpp:580–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580void TSStatic::onRemove()
581{
582 SAFE_DELETE(mPhysicsRep);
583
584 // Accumulation
585 if (isClientObject() && mShapeInstance)
586 {
587 if (mShapeInstance->hasAccumulation())
588 AccumulationVolume::removeObject(this);
589 }
590
591 mConvexList->nukeList();
592
593 removeFromScene();
594
595 // Remove the resource change signal.
596 //ResourceManager::get().getChangedSignal().remove(this, &TSStatic::_onResourceChanged);
597
598 delete mShapeInstance;
599 mShapeInstance = NULL;
600
601 mAmbientThread = NULL;
602 if (isClientObject())
603 mCubeReflector.unregisterReflector();
604
605 Parent::onRemove();
606}
607
608void TSStatic::_onResourceChanged(const Torque::Path& path)
609{

Callers

nothing calls this directly

Calls 3

nukeListMethod · 0.80
hasAccumulationMethod · 0.45
unregisterReflectorMethod · 0.45

Tested by

no test coverage detected