Преглед на файлове

Merge pull request #109794 from vaner-org/blendspace-fix-error-padding

Correctly hide BlendSpace editor error panel on load
Thaddeus Crews преди 3 седмици
родител
ревизия
6c7f0424c4
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      editor/animation/animation_blend_space_1d_editor.cpp
  2. 1 0
      editor/animation/animation_blend_space_2d_editor.cpp

+ 1 - 0
editor/animation/animation_blend_space_1d_editor.cpp

@@ -801,6 +801,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
 	error_label = memnew(Label);
 	error_label->set_focus_mode(FOCUS_ACCESSIBILITY);
 	error_panel->add_child(error_label);
+	error_panel->hide();
 
 	menu = memnew(PopupMenu);
 	add_child(menu);

+ 1 - 0
editor/animation/animation_blend_space_2d_editor.cpp

@@ -1082,6 +1082,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
 	error_label = memnew(Label);
 	error_label->set_focus_mode(FOCUS_ACCESSIBILITY);
 	error_panel->add_child(error_label);
+	error_panel->hide();
 
 	set_custom_minimum_size(Size2(0, 300 * EDSCALE));