浏览代码

Merge pull request #382 from DavidWyand-GG/TheoraTexMatClone

Theora texture for cloned material fix
David Wyand 12 年之前
父节点
当前提交
66775714ef
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 )
       return;
 
+   Material::sAllowTextureTargetAssignment = true;
    mMaterialList = new TSMaterialList(mMaterialList);
    initMaterialList( features );
+   Material::sAllowTextureTargetAssignment = false;
 
    mOwnMaterialList = true;
 }