From 496a2ee1c7bea359af1b0b1952124a676fbc6fdd Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 26 Mar 2023 20:44:09 +0200 Subject: [PATCH] Make MarginContainer available with `disable_advanced_gui=yes` Comparatively more advanced GUI nodes such as FlowContainer and AspectRatioContainer are already available when building with `disable_advanced_gui=yes`. This increases binary size by about 8 KB for binaries compiled with `disable_advanced_gui=yes` (Linux release export template with LTO enabled). --- scene/register_scene_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 39fc03f9f16..b13b8a41af9 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -385,6 +385,7 @@ void register_scene_types() { GDREGISTER_CLASS(FlowContainer); GDREGISTER_CLASS(HFlowContainer); GDREGISTER_CLASS(VFlowContainer); + GDREGISTER_CLASS(MarginContainer); OS::get_singleton()->yield(); // may take time to init @@ -419,7 +420,6 @@ void register_scene_types() { GDREGISTER_CLASS(AcceptDialog); GDREGISTER_CLASS(ConfirmationDialog); - GDREGISTER_CLASS(MarginContainer); GDREGISTER_CLASS(SubViewportContainer); GDREGISTER_CLASS(SplitContainer); GDREGISTER_CLASS(HSplitContainer);