Browse Source

Make the material revert action undoable.

Lasse Öörni 12 years ago
parent
commit
75b187588f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Bin/Data/Scripts/Editor/EditorMaterial.as

+ 3 - 0
Bin/Data/Scripts/Editor/EditorMaterial.as

@@ -217,7 +217,10 @@ void RevertMaterial()
     if (editMaterial is null)
         return;
 
+    BeginMaterialEdit();
     cache.ReloadResource(editMaterial);
+    EndMaterialEdit();
+    
     RefreshMaterialEditor();
 }