mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Add save_all_scenes method to Editor Interface
Update documentation (squash) fix docs (squash) Improve docs
This commit is contained in:
parent
0c2144da90
commit
8ef2e3d76c
3 changed files with 14 additions and 2 deletions
|
|
@ -337,6 +337,10 @@ void EditorInterface::mark_scene_as_unsaved() {
|
|||
EditorUndoRedoManager::get_singleton()->set_history_as_unsaved(EditorNode::get_editor_data().get_current_edited_scene_history_id());
|
||||
}
|
||||
|
||||
void EditorInterface::save_all_scenes() {
|
||||
EditorNode::get_singleton()->save_all_scenes();
|
||||
}
|
||||
|
||||
// Scene playback.
|
||||
|
||||
void EditorInterface::play_main_scene() {
|
||||
|
|
@ -434,6 +438,7 @@ void EditorInterface::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("save_scene"), &EditorInterface::save_scene);
|
||||
ClassDB::bind_method(D_METHOD("save_scene_as", "path", "with_preview"), &EditorInterface::save_scene_as, DEFVAL(true));
|
||||
ClassDB::bind_method(D_METHOD("save_all_scenes"), &EditorInterface::save_all_scenes);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("mark_scene_as_unsaved"), &EditorInterface::mark_scene_as_unsaved);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue