| 551 | } |
| 552 | |
| 553 | void EditorInterface::_node_selected(const NodePath &p_node_path, const Callable &p_callback) { |
| 554 | const Callable callback = callable_mp(this, &EditorInterface::_node_selected); |
| 555 | node_selector->disconnect(SNAME("selected"), callback); |
| 556 | node_selector->disconnect(SNAME("canceled"), callback); |
| 557 | |
| 558 | if (p_node_path.is_empty()) { |
| 559 | _call_dialog_callback(p_callback, NodePath(), "node selection canceled"); |
| 560 | } else { |
| 561 | const NodePath path = get_edited_scene_root()->get_path().rel_path_to(p_node_path); |
| 562 | _call_dialog_callback(p_callback, path, "node selected"); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | void EditorInterface::_property_selected(const String &p_property_name, const Callable &p_callback) { |
| 567 | const Callable callback = callable_mp(this, &EditorInterface::_property_selected); |
nothing calls this directly
no test coverage detected