You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Fix ScriptCreateDialog passing script w/ no filename
This commit is contained in:
@@ -443,6 +443,12 @@ void ScriptCreateDialog::_path_changed(const String &p_path) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (p.get_file().get_basename() == "") {
|
||||||
|
_msg_path_valid(false, TTR("Filename is empty"));
|
||||||
|
_update_dialog();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* All checks passed */
|
/* All checks passed */
|
||||||
|
|
||||||
is_path_valid = true;
|
is_path_valid = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user