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