mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 12:03:51 +00:00
temp workaround for material editor crash
selection swapping is causing an apcrash notDirtyMaterial.delete(); *should* work, but we know what they say about assumptions. supressing deletion of workspace material kill off and recreation pending proper review
This commit is contained in:
parent
25a3c3325f
commit
60758dd5a2
1 changed files with 3 additions and 2 deletions
|
|
@ -745,8 +745,9 @@ function MaterialEditorGui::setActiveMaterial( %this, %material )
|
|||
MaterialEditorGui.lastMaterial = %material;
|
||||
|
||||
// we create or recreate a material to hold in a pristine state
|
||||
if(isObject(notDirtyMaterial))
|
||||
notDirtyMaterial.delete();
|
||||
// or, this crashes the ap. fix properly - BJR
|
||||
// if(isObject(notDirtyMaterial))
|
||||
// notDirtyMaterial.delete();
|
||||
|
||||
singleton Material(notDirtyMaterial)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue