Преглед на файлове

Mark resources as dirty when modified in inspector

BearishSun преди 10 години
родител
ревизия
5c557c324b
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 3 0
      MBansheeEditor/Inspectors/GUISkinInspector.cs
  2. 3 0
      MBansheeEditor/Inspectors/StringTableInspector.cs

+ 3 - 0
MBansheeEditor/Inspectors/GUISkinInspector.cs

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

+ 3 - 0
MBansheeEditor/Inspectors/StringTableInspector.cs

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