浏览代码

Merge pull request #1217 from Azaezel/alpha41/crashFyxMatED

temp workaround for material editor crash
Brian Roberts 1 年之前
父节点
当前提交
429585f060
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript

+ 3 - 2
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)
    {