Browse Source

Merge pull request #382 from DavidWyand-GG/TheoraTexMatClone

Theora texture for cloned material fix
David Wyand 12 years ago
parent
commit
66775714ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Engine/source/ts/tsShapeInstance.cpp

+ 2 - 0
Engine/source/ts/tsShapeInstance.cpp

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