Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2022-03-10 05:19:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2022-03-10 05:20:20 +0300
commitb12dd385eb428f51d33f4b447a746835e4fd697a (patch)
tree009ed8037aad30383f68c19c63bf1770512539de /io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
parent1cf57247c7ca13c5dc185baae2201f554f85df50 (diff)
Cleanup: trailing space
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py6
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(