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

Method cloneMaterialList

Engine/source/ts/tsShapeInstance.cpp:257–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void TSShapeInstance::cloneMaterialList( const FeatureSet *features )
258{
259 if ( mOwnMaterialList )
260 return;
261
262 Material::sAllowTextureTargetAssignment = true;
263 mMaterialList = new TSMaterialList(mMaterialList);
264 initMaterialList( features );
265 Material::sAllowTextureTargetAssignment = false;
266
267 mOwnMaterialList = true;
268}
269
270void TSShapeInstance::initMaterialList( const FeatureSet *features )
271{

Callers 4

onNewDataBlockMethod · 0.80
setImageMethod · 0.80
onNewDataBlockMethod · 0.80
_getShapeInstanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected