MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / select_nodes

Method select_nodes

editor/debugger/editor_debugger_tree.cpp:397–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void EditorDebuggerTree::select_nodes(const TypedArray<int64_t> &p_ids) {
398 // Manually select, as the tree control may be out-of-date for some reason (e.g. not shown yet).
399 selection_uncollapse_all = true;
400 inspected_object_ids = p_ids;
401 scrolling_to_item = true;
402
403 if (!updating_scene_tree) {
404 // Request a tree refresh.
405 EditorDebuggerNode::get_singleton()->request_remote_tree();
406 }
407 // Set the value immediately, so no update flooding happens and causes a crash.
408 updating_scene_tree = true;
409}
410
411void EditorDebuggerTree::clear_selection() {
412 inspected_object_ids.clear();

Callers 1

Calls 1

request_remote_treeMethod · 0.45

Tested by

no test coverage detected