glTF importer: better extra error management
This commit is contained in:
parent
0dc2141207
commit
30012da835
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (1, 6, 13),
|
||||
"version": (1, 6, 14),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -89,5 +89,9 @@ def set_extras(blender_element, extras, exclude=[]):
|
|||
|
||||
try:
|
||||
blender_element[custom_property] = value
|
||||
except TypeError:
|
||||
print('Error setting property %s to value of type %s' % (custom_property, type(value)))
|
||||
except Exception:
|
||||
# Try to convert to string
|
||||
try:
|
||||
blender_element[custom_property] = str(value)
|
||||
except Exception:
|
||||
print('Error setting property %s to value of type %s' % (custom_property, type(value)))
|
||||
|
|
Loading…
Reference in New Issue