From 85f2f22be7c022cfcf16391bd4838d2ec0d00afc Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Sat, 3 Feb 2024 13:58:16 +0200 Subject: [PATCH] [DockableContainer change] Don't set layout's `resource_name` if it already has a value Another change that might be worth adding to upstream. --- addons/dockable_container/layout.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/dockable_container/layout.gd b/addons/dockable_container/layout.gd index 0bb567df8..d0eb28938 100644 --- a/addons/dockable_container/layout.gd +++ b/addons/dockable_container/layout.gd @@ -41,7 +41,8 @@ var _root: DockableLayoutNode = DockableLayoutPanel.new() func _init() -> void: - resource_name = "Layout" + if resource_name.is_empty(): + resource_name = "Layout" func set_root(value: DockableLayoutNode, should_emit_changed := true) -> void: