You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Forbid making root on inherited scenes, closes #24484
This commit is contained in:
@@ -565,6 +565,12 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||||||
|
|
||||||
//check that from node to root, all owners are right
|
//check that from node to root, all owners are right
|
||||||
|
|
||||||
|
if (root->get_scene_inherited_state().is_valid()) {
|
||||||
|
accept->set_text(TTR("Can't reparent nodes in inherited scenes, order of nodes can't change."));
|
||||||
|
accept->popup_centered_minsize();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (node->get_owner() != root) {
|
if (node->get_owner() != root) {
|
||||||
accept->set_text(TTR("Node must belong to the edited scene to become root."));
|
accept->set_text(TTR("Node must belong to the edited scene to become root."));
|
||||||
accept->popup_centered_minsize();
|
accept->popup_centered_minsize();
|
||||||
|
|||||||
Reference in New Issue
Block a user