| 395 | } |
| 396 | |
| 397 | void 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 | |
| 411 | void EditorDebuggerTree::clear_selection() { |
| 412 | inspected_object_ids.clear(); |
no test coverage detected