mirror of
https://github.com/godotengine/godot-blender-exporter.git
synced 2025-12-31 17:49:19 +03:00
Filter out colon in node path, which is also invalid in latest Godot. (#383)
Also rewrite node name filtering using filter() to be concise.
This commit is contained in:
@@ -161,7 +161,8 @@ class NodeTemplate(FileEntry):
|
||||
self.parent = parent_node
|
||||
|
||||
# filter out special character
|
||||
node_name = name.replace('.', '').replace('/', '').replace('\\', '')
|
||||
invalid_chs = ('.', '\\', '/', ':')
|
||||
node_name = ''.join(filter(lambda ch: ch not in invalid_chs, name))
|
||||
|
||||
if parent_node is not None:
|
||||
# solve duplication
|
||||
|
||||
Reference in New Issue
Block a user