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: