diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-01-24 19:46:53 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-01-24 19:46:53 +0300 |
commit | 5c1b4497dacca6e183ffe50e03cb4e2e60e7325e (patch) | |
tree | a3b237be182e6664de276cfbe1f94dab7e735e12 /io_scene_gltf2/blender/com | |
parent | 2f208187759ff860d326d0da464dac8336f6c5b9 (diff) |
glTF importer: fix traceback when trying to create custom property from complex extras
Diffstat (limited to 'io_scene_gltf2/blender/com')
-rw-r--r-- | io_scene_gltf2/blender/com/gltf2_blender_extras.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/com/gltf2_blender_extras.py b/io_scene_gltf2/blender/com/gltf2_blender_extras.py index 0be942a0..c67cb903 100644 --- a/io_scene_gltf2/blender/com/gltf2_blender_extras.py +++ b/io_scene_gltf2/blender/com/gltf2_blender_extras.py @@ -87,5 +87,8 @@ def set_extras(blender_element, extras, exclude=[]): if custom_property in exclude: continue - blender_element[custom_property] = value + try: + blender_element[custom_property] = value + except TypeError as e: + print('Error setting property %s to value of type %s' % (custom_property, type(value))) |