diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py index 828d1955..4ad8872e 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py @@ -34,11 +34,11 @@ def __gather_channels_baked(obj_uuid, export_settings): obj_uuid, # Use obj uuid as action name for caching None, False #If Object is not animated, don't keep animation for this channel - ) + ) if channel is not None: channels.append(channel) - return channels if len(channels) > 0 else None + return channels if len(channels) > 0 else None def gather_animations( obj_uuid: int, tracks: typing.Dict[str, typing.List[int]], @@ -61,7 +61,7 @@ def gather_animations( obj_uuid: int, if len([a for a in blender_actions if a[2] == "OBJECT"]) == 0: # No TRS animation are found for this object. # But we need to bake, in case we export selection - if export_settings['gltf_selected'] is True and blender_object.type != "ARMATURE": + if export_settings['gltf_selected'] is True and blender_object.type != "ARMATURE": channels = __gather_channels_baked(obj_uuid, export_settings) if channels is not None: animation = gltf2_io.Animation( |