Explorar o código

TextureRegion: fixed Autoslice not created/updated properly.

(cherry picked from commit 671e97d254632f9f7230c7bd8458662eb27c8743)
dankan1890 %!s(int64=5) %!d(string=hai) anos
pai
achega
657f12edcc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/plugins/texture_region_editor_plugin.cpp

+ 1 - 0
editor/plugins/texture_region_editor_plugin.cpp

@@ -1043,6 +1043,7 @@ TextureRegionEditor::TextureRegionEditor(EditorNode *p_editor) {
 	hscroll->connect("value_changed", this, "_scroll_changed");
 
 	updating_scroll = false;
+	autoslice_is_dirty = true;
 }
 
 void TextureRegionEditorPlugin::edit(Object *p_object) {