new method: TSShapeInstance::resetMaterialList(). Sets all object-instance mapto values back to initial state. reskin now does so to avoid having to track origional values independently. (so say, if you've already got skin1 plugged in to one, and nothing in to another, no need to set skin1=skin2 on the first and skin2 or base=skin2 on the second to swap both on over to skin2).

also by request, went ahead and killed case sensitivity for mapto string replacement when reskinning.
This commit is contained in:
Azaezel 2017-11-12 23:58:34 -06:00
parent 9e435a3f34
commit f9bf4fca4b
5 changed files with 12 additions and 3 deletions

View file

@ -534,6 +534,7 @@ void TSStatic::reSkin()
{
if ( isGhost() && mShapeInstance && mSkinNameHandle.isValidString() )
{
mShapeInstance->resetMaterialList();
Vector<String> skins;
String(mSkinNameHandle.getString()).split( ";", skins );