glTF exporter: check bad fcurve name
This commit is contained in:
parent
9ec9bb2354
commit
60c0b41861
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (0, 9, 32),
|
||||
"version": (0, 9, 33),
|
||||
'blender': (2, 80, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -148,7 +148,11 @@ def __gather_target(channels: typing.Tuple[bpy.types.FCurve],
|
|||
def __get_channel_groups(blender_action: bpy.types.Action, blender_object: bpy.types.Object, export_settings):
|
||||
targets = {}
|
||||
for fcurve in blender_action.fcurves:
|
||||
target_property = get_target_property_name(fcurve.data_path)
|
||||
try:
|
||||
target_property = get_target_property_name(fcurve.data_path)
|
||||
except:
|
||||
gltf2_io_debug.print_console("WARNING", "Invalid animation fcurve name on action {}".format(blender_action.name))
|
||||
continue
|
||||
object_path = get_target_object_path(fcurve.data_path)
|
||||
|
||||
# find the object affected by this action
|
||||
|
|
Loading…
Reference in New Issue