Skip to content

Commit a3741cd

Browse files
committed
Fix error panel padding always present on load
1 parent 28bd72a commit a3741cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

editor/animation/animation_blend_space_1d_editor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ AnimationNodeBlendSpace1DEditor::AnimationNodeBlendSpace1DEditor() {
801801
error_label = memnew(Label);
802802
error_label->set_focus_mode(FOCUS_ACCESSIBILITY);
803803
error_panel->add_child(error_label);
804+
error_panel->hide();
804805

805806
menu = memnew(PopupMenu);
806807
add_child(menu);

editor/animation/animation_blend_space_2d_editor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
10821082
error_label = memnew(Label);
10831083
error_label->set_focus_mode(FOCUS_ACCESSIBILITY);
10841084
error_panel->add_child(error_label);
1085+
error_panel->hide();
10851086

10861087
set_custom_minimum_size(Size2(0, 300 * EDSCALE));
10871088

0 commit comments

Comments
 (0)