mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Resolve issue #163
Fixed and assert on changing material, and we now map the material to the MATMGR by name instead of type.
This commit is contained in:
parent
769268784f
commit
7e5ddf4ca2
3 changed files with 28 additions and 4 deletions
|
|
@ -1120,8 +1120,8 @@ DefineEngineMethod( TSStatic, changeMaterial, void, ( const char* mapTo, Materia
|
|||
|
||||
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
|
||||
// target the specific targets per inst, this is actually doing more than we thought
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue