Merge pull request #96189 from SaracenOne/disable_placeholder_toggle

Add Instance Placeholder validation check.
This commit is contained in:
Rémi Verschelde 2024-09-08 23:21:41 +02:00
commit b4dc87db9d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -1241,6 +1241,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) {