Răsfoiți Sursa

Mark resources as dirty when modified in inspector

BearishSun 10 ani în urmă
părinte
comite
5c557c324b

+ 3 - 0
MBansheeEditor/Inspectors/GUISkinInspector.cs

@@ -64,6 +64,8 @@ namespace BansheeEditor
                         guiSkin.RemoveStyle(KVP.Key);
                 }
 
+                EditorApplication.SetDirty(guiSkin);
+
                 BuildGUI();
                 Refresh();
             };
@@ -71,6 +73,7 @@ namespace BansheeEditor
             valuesField.OnValueChanged += x =>
             {
                 guiSkin.SetStyle(x, styles[x]);
+                EditorApplication.SetDirty(guiSkin);
             };
 
             layout.AddSpace(10);

+ 3 - 0
MBansheeEditor/Inspectors/StringTableInspector.cs

@@ -82,6 +82,8 @@ namespace BansheeEditor
                         stringTable.RemoveString(KVP.Key);
                 }
 
+                EditorApplication.SetDirty(stringTable);
+
                 BuildGUI();
                 Refresh();
             };
@@ -89,6 +91,7 @@ namespace BansheeEditor
             valuesField.OnValueChanged += x =>
             {
                 stringTable.SetString(x, strings[x]);
+                EditorApplication.SetDirty(stringTable);
             };
             
             layout.AddSpace(10);