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

Method cloneMaterialList

Engine/source/ts/tsShapeInstance.cpp:259–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

onAddMethod · 0.80
onNewDataBlockMethod · 0.80
_createShapeMethod · 0.80
setImageMethod · 0.80
onNewDataBlockMethod · 0.80
_getShapeInstanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected