Browse Source

TextureRegion: fixed Autoslice not created/updated properly.

(cherry picked from commit 671e97d254632f9f7230c7bd8458662eb27c8743)
dankan1890 5 years ago
parent
commit
657f12edcc
1 changed files with 1 additions and 0 deletions
  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) {