1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

validate any form of running project

This commit is contained in:
runzh-crypto
2025-04-07 00:29:19 +08:00
parent a210fe6dbd
commit e57eeb14bc
2 changed files with 4 additions and 5 deletions

View File

@@ -5702,11 +5702,6 @@ bool EditorNode::ensure_main_scene(bool p_from_native) {
return false; return false;
} }
if (!EditorNode::validate_custom_directory()) {
current_menu_option = -1;
return false;
}
return true; return true;
} }

View File

@@ -218,6 +218,10 @@ void EditorRunBar::_run_scene(const String &p_scene_path, const Vector<String> &
return; return;
} }
if (!EditorNode::get_singleton()->validate_custom_directory()) {
return;
}
_reset_play_buttons(); _reset_play_buttons();
String write_movie_file; String write_movie_file;