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

Method onRemove

Engine/source/T3D/tsStatic.cpp:435–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void TSStatic::onRemove()
436{
437 SAFE_DELETE( mPhysicsRep );
438
439 // Accumulation
440 if ( isClientObject() && mShapeInstance )
441 {
442 if ( mShapeInstance->hasAccumulation() )
443 AccumulationVolume::removeObject(this);
444 }
445
446 mConvexList->nukeList();
447
448 removeFromScene();
449
450 // Remove the resource change signal.
451 ResourceManager::get().getChangedSignal().remove( this, &TSStatic::_onResourceChanged );
452
453 delete mShapeInstance;
454 mShapeInstance = NULL;
455
456 mAmbientThread = NULL;
457 if ( isClientObject() )
458 mCubeReflector.unregisterReflector();
459
460 Parent::onRemove();
461}
462
463void TSStatic::_onResourceChanged( const Torque::Path &path )
464{

Callers

nothing calls this directly

Calls 5

nukeListMethod · 0.80
getFunction · 0.50
hasAccumulationMethod · 0.45
removeMethod · 0.45
unregisterReflectorMethod · 0.45

Tested by

no test coverage detected