mirror of https://github.com/godotengine/godot
Add Instance Placeholder validation check.
Disallow toggling placeholder on editable children or inherited nodes.
This commit is contained in:
parent
a2f097d603
commit
fe6762a6c7
|
|
@ -1236,6 +1236,10 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_validate_no_foreign()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
List<Node *> selection = editor_selection->get_selected_node_list();
|
List<Node *> selection = editor_selection->get_selected_node_list();
|
||||||
List<Node *>::Element *e = selection.front();
|
List<Node *>::Element *e = selection.front();
|
||||||
if (e) {
|
if (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue