You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user