소스 검색

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