1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Add Instance Placeholder validation check.

Disallow toggling placeholder on editable children
or inherited nodes.
This commit is contained in:
Saracen
2024-08-27 22:55:43 +01:00
parent a2f097d603
commit fe6762a6c7

View File

@@ -1236,6 +1236,10 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
break;
}
if (!_validate_no_foreign()) {
break;
}
List<Node *> selection = editor_selection->get_selected_node_list();
List<Node *>::Element *e = selection.front();
if (e) {