You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #105103 from runzh-crypto/validate_custom_directory_v2
Validate custom directory when running from editor
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user