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

Method _onTSShapeLoaded

Engine/source/ts/tsShapeConstruct.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82ResourceRegisterUnloadSignal< TSShape > TSShapeConstructor::_smAutoUnload( &TSShapeConstructor::_onTSShapeUnloaded );
83
84void TSShapeConstructor::_onTSShapeLoaded( Resource< TSShape >& resource )
85{
86 TSShapeConstructor* ctor = findShapeConstructor( resource.getPath().getFullPath() );
87 if( ctor )
88 ctor->_onLoad( resource );
89
90 if (ctor && ctor->mShape && ctor->mShape->needsReinit())
91 {
92 ctor->mShape->init();
93 }
94}
95
96void TSShapeConstructor::_onTSShapeUnloaded( const Torque::Path& path, TSShape* shape )
97{

Callers

nothing calls this directly

Calls 4

_onLoadMethod · 0.80
needsReinitMethod · 0.80
getPathMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected