|
@@ -1120,8 +1120,8 @@ DefineEngineMethod( TSStatic, changeMaterial, void, ( const char* mapTo, Materia
|
|
|
|
|
|
newMat->mMapTo = mapTo;
|
|
newMat->mMapTo = mapTo;
|
|
|
|
|
|
- // Map the material in the in the matmgr
|
|
|
|
- MATMGR->mapMaterial( mapTo, newMat->mMapTo );
|
|
|
|
|
|
+ // Map the material by name in the matmgr
|
|
|
|
+ MATMGR->mapMaterial( mapTo, newMat->getName() );
|
|
|
|
|
|
// Replace instances with the new material being traded in. Lets make sure that we only
|
|
// Replace instances with the new material being traded in. Lets make sure that we only
|
|
// target the specific targets per inst, this is actually doing more than we thought
|
|
// target the specific targets per inst, this is actually doing more than we thought
|