Bladeren bron

Bugfix: Keep native modified resources alive in editor until the project is saved

BearishSun 6 jaren geleden
bovenliggende
commit
4792b2b5f6

+ 1 - 1
Source/EditorManaged/General/EditorApplication.cs

@@ -785,7 +785,7 @@ namespace bs.Editor
                 return;
 
             SetStatusProject(true);
-            persistentData.dirtyResources[resource.UUID] = true;
+            persistentData.dirtyResources[resource.UUID] = resource;
         }
 
         /// <summary>

+ 1 - 1
Source/EditorManaged/General/EditorPersistentData.cs

@@ -15,7 +15,7 @@ namespace bs.Editor
     internal class EditorPersistentData : ManagedComponent
     {
         [SerializeField]
-        internal Dictionary<UUID, bool> dirtyResources = new Dictionary<UUID, bool>();
+        internal Dictionary<UUID, Resource> dirtyResources = new Dictionary<UUID, Resource>();
 
         [SerializeField]
         internal Dictionary<UUID, EditorAnimClipInfo> dirtyAnimClips = new Dictionary<UUID, EditorAnimClipInfo>();

+ 1 - 1
Source/bsf

@@ -1 +1 @@
-Subproject commit 7b7150c41863f773073177efaffb7f0356c3cd1b
+Subproject commit d9e753060ebe3bc72aff26906e3eada27ca1480e