Skip to content

Commit 7645c59

Browse files
authored
Merge pull request #379 from WhalesState/scene-roots
Change `get_open_scenes_roots` to `get_open_scene_roots`.
2 parents 478b1ef + a154404 commit 7645c59

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/classes/EditorInterface.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@
150150
[b]Warning:[/b] Removing and freeing this node will render a part of the editor useless and may cause a crash.
151151
</description>
152152
</method>
153-
<method name="get_open_scenes" qualifiers="const">
154-
<return type="PackedStringArray" />
153+
<method name="get_open_scene_roots" qualifiers="const">
154+
<return type="Array" />
155155
<description>
156-
Returns an [Array] with the file paths of the currently opened scenes.
156+
Returns an [Array] with the root nodes of the currently opened scenes.
157157
</description>
158158
</method>
159-
<method name="get_open_scenes_roots" qualifiers="const">
160-
<return type="Array" />
159+
<method name="get_open_scenes" qualifiers="const">
160+
<return type="PackedStringArray" />
161161
<description>
162-
Returns an [Array] with the root nodes of the currently opened scenes.
162+
Returns an [Array] with the file paths of the currently opened scenes.
163163
</description>
164164
</method>
165165
<method name="get_playing_scene" qualifiers="const">

editor/editor_interface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ void EditorInterface::_bind_methods() {
603603
ClassDB::bind_method(D_METHOD("reload_scene_from_path", "scene_filepath"), &EditorInterface::reload_scene_from_path);
604604

605605
ClassDB::bind_method(D_METHOD("get_open_scenes"), &EditorInterface::get_open_scenes);
606-
ClassDB::bind_method(D_METHOD("get_open_scenes_roots"), &EditorInterface::get_open_scenes_roots);
606+
ClassDB::bind_method(D_METHOD("get_open_scene_roots"), &EditorInterface::get_open_scenes_roots);
607607
ClassDB::bind_method(D_METHOD("get_edited_scene_root"), &EditorInterface::get_edited_scene_root);
608608

609609
ClassDB::bind_method(D_METHOD("save_scene"), &EditorInterface::save_scene);

0 commit comments

Comments
 (0)