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

Method _loadShape

Engine/source/forest/ts/tsForestItemData.cpp:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void TSForestItemData::_loadShape()
113{
114 if (mShapeAsset.isNull()) return;
115
116 _setShape(mShapeAssetId);
117
118 if ( !(bool)mShape )
119 return;
120
121 if ( mIsClientObject &&
122 !mShape->preloadMaterialList(mShapeAsset->getShapeFilePath()) )
123 return;
124
125 // Lets add an autobillboard detail if don't have one.
126 //_checkLastDetail();
127
128 _updateCollisionDetails();
129}
130
131TSShapeInstance* TSForestItemData::_getShapeInstance() const
132{

Callers

nothing calls this directly

Calls 3

preloadMaterialListMethod · 0.80
getShapeFilePathMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected