Browse Source

Merge pull request #382 from DavidWyand-GG/TheoraTexMatClone

Theora texture for cloned material fix
David Wyand 12 năm trước cách đây
mục cha
commit
66775714ef
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 }