From 60758dd5a2e194b013647f86fa82792ebcb16c6e Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 20 Feb 2024 14:11:58 -0600 Subject: [PATCH] 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 --- .../tools/materialEditor/scripts/materialEditor.ed.tscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {