瀏覽代碼

Merge pull request #37621 from dankan1890/autoslice_fix

Fixed TextureRegion autoslice issue.
Rémi Verschelde 5 年之前
父節點
當前提交
32d9d6e7ff
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/texture_region_editor_plugin.cpp

+ 1 - 0
editor/plugins/texture_region_editor_plugin.cpp

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