diff options
author | gladmin <jeffres@gmail.com> | 2019-09-25 16:58:05 +0200 |
---|---|---|
committer | gladmin <jeffres@gmail.com> | 2019-09-25 16:58:05 +0200 |
commit | 7f3e37feadd9e401de8fe5753e0fa31fbbe9eac5 (patch) | |
tree | b065269525199ddf00921a55fb71539db1ee34a7 /editor | |
parent | 351c45a4612749da81ffa26783d44880aa1edd7a (diff) |
Fix import hints being ignored by glTF importer
This fixes a regression introduced in commit 72d2468
due to hyphens being removed from nodes names.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/import/editor_scene_importer_gltf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index df5511f540..49091dc812 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -156,7 +156,7 @@ static Transform _arr_to_xform(const Array &p_array) { } 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); return p_name; } |