From a3741cda5a53c8aa36723632aba142fdee108b75 Mon Sep 17 00:00:00 2001 From: vaner-org Date: Wed, 20 Aug 2025 09:07:49 +0530 Subject: [PATCH] Fix error panel padding always present on load --- editor/animation/animation_blend_space_1d_editor.cpp | 1 + editor/animation/animation_blend_space_2d_editor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/editor/animation/animation_blend_space_1d_editor.cpp b/editor/animation/animation_blend_space_1d_editor.cpp index 91cf5cd2b08..4cca2a6f906 100644 --- a/editor/animation/animation_blend_space_1d_editor.cpp +++ b/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); diff --git a/editor/animation/animation_blend_space_2d_editor.cpp b/editor/animation/animation_blend_space_2d_editor.cpp index 44fd58234d3..2aad2ea09e5 100644 --- a/editor/animation/animation_blend_space_2d_editor.cpp +++ b/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));