Просмотр исходного кода

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

BearishSun 7 лет назад
Родитель
Сommit
ce75398c60
1 измененных файлов с 2 добавлено и 0 удалено
  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();
             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)