1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Prevent crash when clicking Mesh in MeshInstance when is scene root

This commit is contained in:
hilfazer
2021-02-26 18:58:05 +01:00
parent 28e36dc7b9
commit 84a9efcebc
2 changed files with 9 additions and 3 deletions

View File

@@ -1929,7 +1929,7 @@ bool Node::is_editable_instance(const Node *p_node) const {
Node *Node::get_deepest_editable_node(Node *p_start_node) const {
ERR_FAIL_NULL_V(p_start_node, nullptr);
ERR_FAIL_COND_V(!is_a_parent_of(p_start_node), nullptr);
ERR_FAIL_COND_V(!is_a_parent_of(p_start_node), p_start_node);
Node const *iterated_item = p_start_node;
Node *node = p_start_node;