diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py index cd836682..66ce11c7 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py @@ -138,7 +138,7 @@ def get_object_matrix(blender_obj_uuid: str, data = {} # TODO : bake_range_start & bake_range_end are no more needed here - # Because we bake, we don't know exactly the frame range, + # Because we bake, we don't know exactly the frame range, # So using min / max of all actions start_frame = min([v[0] for v in [a.frame_range for a in bpy.data.actions]]) @@ -168,7 +168,7 @@ def get_object_matrix(blender_obj_uuid: str, ((1.0, 0.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0), (0.0, -1.0, 0.0, 0.0), (0.0, 0.0, 0.0, 1.0))) parent_mat = armature_object.matrix_world @ blender_bone.matrix @ axis_basis_change - + #For object inside collection (at root), matrix world is already expressed regarding collection parent if export_settings['vtree'].nodes[obj_uuid].parent_uuid is not None and export_settings['vtree'].nodes[export_settings['vtree'].nodes[obj_uuid].parent_uuid].blender_type == VExportNode.COLLECTION: parent_mat = mathutils.Matrix.Identity(4).freeze() @@ -177,7 +177,7 @@ def get_object_matrix(blender_obj_uuid: str, if obj_uuid not in data.keys(): data[obj_uuid] = {} - + if blender_obj.animation_data and blender_obj.animation_data.action: if blender_obj.animation_data.action.name not in data[obj_uuid].keys(): data[obj_uuid][blender_obj.animation_data.action.name] = {} |