Theora texture for cloned material fix

When a TSShapeInstance makes a copy of its own materials through
cloneMaterialList() (such as done with client side ShapeBase objects),
the reference to a named diffuse render target was being lost.  This
affected using a TheoraTextureObject on a ShapeBase derived object
(StaticShape, etc.).
This commit is contained in:
DavidWyand-GG 2013-05-13 16:49:12 -04:00
parent fd467070b3
commit e4df92a7bc

View file

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