mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #382 from DavidWyand-GG/TheoraTexMatClone
Theora texture for cloned material fix
This commit is contained in:
commit
66775714ef
1 changed files with 2 additions and 0 deletions
|
|
@ -259,8 +259,10 @@ void TSShapeInstance::cloneMaterialList( const FeatureSet *features )
|
||||||
if ( mOwnMaterialList )
|
if ( mOwnMaterialList )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Material::sAllowTextureTargetAssignment = true;
|
||||||
mMaterialList = new TSMaterialList(mMaterialList);
|
mMaterialList = new TSMaterialList(mMaterialList);
|
||||||
initMaterialList( features );
|
initMaterialList( features );
|
||||||
|
Material::sAllowTextureTargetAssignment = false;
|
||||||
|
|
||||||
mOwnMaterialList = true;
|
mOwnMaterialList = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue