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:
parent
351c45a461
commit
7f3e37fead
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue