Fix import hints being ignored by glTF importer

This fixes a regression introduced in commit 72d2468
due to hyphens being removed from nodes names.
This commit is contained in:
gladmin 2019-09-25 16:58:05 +02:00
parent 351c45a461
commit 7f3e37fead
1 changed files with 1 additions and 1 deletions

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;
} }