Merge pull request #382 from DavidWyand-GG/TheoraTexMatClone

Theora texture for cloned material fix
This commit is contained in:
David Wyand 2013-05-13 13:53:19 -07:00
commit 66775714ef

View file

@ -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;
} }