Sfoglia il codice sorgente

Bugfix: Saving a project will now properly save modified sprite textures

BearishSun 6 anni fa
parent
commit
ce75398c60

+ 2 - 0
Source/EditorManaged/Inspectors/SpriteTextureInspector.cs

@@ -63,6 +63,8 @@ namespace bs.Editor
             InspectableState state = genericDrawer.Refresh();
             if (state != InspectableState.NotModified)
             {
+                EditorApplication.SetDirty(spriteTexture);
+
                 // The inspector will by default just assign a resource reference without loading it, make sure we load it
                 // so it can be previewed
                 if (spriteTexture.Texture != null && !spriteTexture.Texture.IsLoaded)