You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix undoredo handling in some dialogs
This commit is contained in:
@@ -5261,6 +5261,14 @@ bool EditorNode::has_scenes_in_session() {
|
||||
return !scenes.is_empty();
|
||||
}
|
||||
|
||||
void EditorNode::undo() {
|
||||
trigger_menu_option(EDIT_UNDO, true);
|
||||
}
|
||||
|
||||
void EditorNode::redo() {
|
||||
trigger_menu_option(EDIT_REDO, true);
|
||||
}
|
||||
|
||||
bool EditorNode::ensure_main_scene(bool p_from_native) {
|
||||
pick_main_scene->set_meta("from_native", p_from_native); // Whether from play button or native run.
|
||||
String main_scene = GLOBAL_GET("application/run/main_scene");
|
||||
|
||||
Reference in New Issue
Block a user