Skip to content

Commit d328cbd

Browse files
committed
Option to exclude branch from remote scene debugger
1 parent 77dcf97 commit d328cbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scene/debugger/scene_debugger.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,16 @@ SceneDebuggerTree::SceneDebuggerTree(Node *p_root) {
509509
bool is_root = true;
510510
const StringName &is_visible_sn = SNAME("is_visible");
511511
const StringName &is_visible_in_tree_sn = SNAME("is_visible_in_tree");
512+
const StringName &exclude_meta_key = SNAME("_scene_debugger_tree_branch_exclude_");
513+
512514
while (stack.size()) {
513515
Node *n = stack.front()->get();
514516
stack.pop_front();
515517

518+
if (n->has_meta(exclude_meta_key)) {
519+
continue;
520+
}
521+
516522
int count = n->get_child_count();
517523
for (int i = 0; i < count; i++) {
518524
stack.push_front(n->get_child(count - i - 1));

0 commit comments

Comments
 (0)