You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Merge pull request #100437 from KoBeWi/ruaninstancequestionmark
Add `is_instance()` helper method to Node
This commit is contained in:
@@ -1610,7 +1610,7 @@ bool CanvasItemEditor::_gui_input_open_scene_on_double_click(const Ref<InputEven
|
||||
List<CanvasItem *> selection = _get_edited_canvas_items();
|
||||
if (selection.size() == 1) {
|
||||
CanvasItem *ci = selection.front()->get();
|
||||
if (!ci->get_scene_file_path().is_empty() && ci != EditorNode::get_singleton()->get_edited_scene()) {
|
||||
if (ci->is_instance() && ci != EditorNode::get_singleton()->get_edited_scene()) {
|
||||
EditorNode::get_singleton()->load_scene(ci->get_scene_file_path());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user