Merge pull request #1217 from Azaezel/alpha41/crashFyxMatED

temp workaround for material editor crash
This commit is contained in:
Brian Roberts 2024-02-20 14:12:16 -06:00 committed by GitHub
commit 429585f060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
{