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

Method is_scene_open

editor/editor_node.cpp:4328–4336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4326}
4327
4328bool EditorNode::is_scene_open(const String &p_path) {
4329 for (int i = 0; i < editor_data.get_edited_scene_count(); i++) {
4330 if (editor_data.get_scene_path(i) == p_path) {
4331 return true;
4332 }
4333 }
4334
4335 return false;
4336}
4337
4338bool EditorNode::is_multi_window_enabled() const {
4339 return !SceneTree::get_singleton()->get_root()->is_embedding_subwindows() && !EDITOR_GET("interface/editor/single_window_mode") && EDITOR_GET("interface/multi_window/enable");

Callers 4

_try_move_itemMethod · 0.80
_new_scene_fromMethod · 0.80
editMethod · 0.80

Calls 2

get_scene_pathMethod · 0.45

Tested by

no test coverage detected