Browse Source

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

BearishSun 6 years ago
parent
commit
ce75398c60
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/EditorManaged/Inspectors/SpriteTextureInspector.cs

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

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