Merge pull request #17388 from Hinsbart/mono_class_name

Mono: Avoid invalid class names.
This commit is contained in:
Rémi Verschelde 2018-03-15 19:47:39 +01:00 committed by GitHub
commit 99c1323a08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 2 deletions

View file

@ -436,6 +436,13 @@ void ScriptCreateDialog::_path_changed(const String &p_path) {
return;
}
String path_error = ScriptServer::get_language(language_menu->get_selected())->validate_path(p);
if (path_error != "") {
_msg_path_valid(false, path_error);
_update_dialog();
return;
}
/* All checks passed */
is_path_valid = true;