1
0
Fork 0

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
1 changed files with 4 additions and 0 deletions

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) {