Skip to content

Commit

Permalink
Disable a prohibitively slow code branch when reparenting nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Nov 29, 2023
1 parent c17d73f commit 3a67eb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,8 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
}
} break;

// FIXME: This approach causes a significant performance regression, see GH-84910.
#if 0
case Variant::OBJECT: {
Resource *resource = Object::cast_to<Resource>(r_variant);
if (!resource) {
Expand Down Expand Up @@ -1792,6 +1794,7 @@ bool SceneTreeDock::_check_node_path_recursive(Node *p_root_node, Variant &r_var
}
break;
};
#endif

default: {
}
Expand Down

0 comments on commit 3a67eb2

Please sign in to comment.