reattiva / Urho3D-Blender

Blender to Urho3D mesh exporter
Other
123 stars 52 forks source link

When material name contain special symbols its exported wirhout xml extension #51

Open 1vanK opened 8 years ago

1vanK commented 8 years ago

For example in Blender name contain colon: "abaddon_mount_vmat:dota2_hero_shaderfx" It exported as "abaddon_mount_vmat" (without .xml)

reattiva commented 8 years ago

Well, you can't have a colon in a filename, if you want to clean it up you can try to add: name = bpy.path.clean_name(name) as first line in the function GetFilepath of utils.py.