Merge pull request #32343 from jeffres/master

Fix import hints being ignored by glTF importer
This commit is contained in:
Rémi Verschelde 2019-09-26 07:55:18 +02:00 committed by GitHub
commit e4d56001e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ static Transform _arr_to_xform(const Array &p_array) {
} }
String EditorSceneImporterGLTF::_sanitize_scene_name(const String &name) { String EditorSceneImporterGLTF::_sanitize_scene_name(const String &name) {
RegEx regex("([^a-zA-Z0-9_ ]+)"); RegEx regex("([^a-zA-Z0-9_ -]+)");
String p_name = regex.sub(name, "", true); String p_name = regex.sub(name, "", true);
return p_name; return p_name;
} }