File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3849,11 +3849,12 @@ int Main::start() {
3849
3849
} else if (E->get ().length () && E->get ()[0 ] != ' -' && positional_arg.is_empty ()) {
3850
3850
positional_arg = E->get ();
3851
3851
3852
- if (E->get ().ends_with (" .scn" ) ||
3853
- E->get ().ends_with (" .tscn" ) ||
3854
- E->get ().ends_with (" .escn" ) ||
3855
- E->get ().ends_with (" .res" ) ||
3856
- E->get ().ends_with (" .tres" )) {
3852
+ String scene_path = ResourceUID::ensure_path (E->get ());
3853
+ if (scene_path.ends_with (" .scn" ) ||
3854
+ scene_path.ends_with (" .tscn" ) ||
3855
+ scene_path.ends_with (" .escn" ) ||
3856
+ scene_path.ends_with (" .res" ) ||
3857
+ scene_path.ends_with (" .tres" )) {
3857
3858
// Only consider the positional argument to be a scene path if it ends with
3858
3859
// a file extension associated with Godot scenes. This makes it possible
3859
3860
// for projects to parse command-line arguments for custom CLI arguments
You can’t perform that action at this time.
0 commit comments