diff --git a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript index 5f6c92776..ccd93fee2 100644 --- a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript +++ b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript @@ -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) {