Game Development Community

Material not updating when selecting object

by Eric den Boer · in Torque 3D Professional · 10/09/2009 (7:05 am) · 1 replies

Hi guys,

Due to some reasons I had to manually update the engine files and commit them to my svn, then manually reset all the changes I made to the engine, script files, etc. Anyway.. now I've got a problem where when I select an object, the material in the material editor doesn't update. I can't edit the object's materials anymore now.

I copied the script files of all the editors from the FPS Example (whose Material Editor DOES work properly), but alas.. no fix.

What could be wrong? Where in script/engine does it actually call the update of the material in the editor? And yes, Preview in World is selected.

Edit:
Getting these warnings when importing a material-less model:
Warning, overwriting material for: matEd_mappedMat
Warning, overwriting material for: matEd_mappedMatB

Objects like the spawn point and the player itself are working properly. But the moment I try to import custom models or models like "station", it doesn't work anymore.

#1
10/09/2009 (3:54 pm)
Aha!

Found the problem... if anyone else out there is ever stupid enough, like me, to try it... don't:

I had added setSkinName functions and all that to the TSStatic class, as I needed to dynamically skin the models during gameplay. However, this clashes with the current material system in T3D.

:)