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

Method _onTSShapeLoaded

Engine/source/ts/tsShapeConstruct.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96ResourceRegisterUnloadSignal< TSShape > TSShapeConstructor::_smAutoUnload(&TSShapeConstructor::_onTSShapeUnloaded);
97
98void TSShapeConstructor::_onTSShapeLoaded(Resource< TSShape >& resource)
99{
100 TSShapeConstructor* ctor = findShapeConstructorByFilename(resource.getPath().getFullPath());
101 if (ctor)
102 ctor->_onLoad(resource);
103
104 if (ctor && ctor->mShape && ctor->mShape->needsReinit())
105 {
106 ctor->mShape->init();
107 }
108}
109
110void TSShapeConstructor::_onTSShapeUnloaded(const Torque::Path& path, TSShape* shape)
111{

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