Skip to content

Commit

Permalink
black (tired of the git emails)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Apr 21, 2024
1 parent 9c3a088 commit 0ec2df6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fast64_internal/sm64/animation/importing.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def animation_data_to_blender(
for frame, rotation in enumerate(bone_data.rotation):
f_curve.keyframe_points.insert(frame, rotation[property_index])


def animation_import_to_blender(
armature_obj: Object,
blender_to_sm64_scale: float,
Expand All @@ -143,10 +144,15 @@ def animation_import_to_blender(
armature_obj.animation_data_create()

if not anim_import.data:
animation_data_to_blender(armature_obj=armature_obj, blender_to_sm64_scale=blender_to_sm64_scale, anim_import=anim_import, action=action,)
animation_data_to_blender(
armature_obj=armature_obj,
blender_to_sm64_scale=blender_to_sm64_scale,
anim_import=anim_import,
action=action,
)

anim_import.to_props(action, actor_name, remove_name_footer, use_custom_name)

stashActionInArmature(armature_obj, action)
armature_obj.animation_data.action = action

Expand Down
2 changes: 2 additions & 0 deletions fast64_internal/sm64/animation/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from ..settings.properties import SM64_Properties
from .properties import SM64_AnimExportProps, SM64_AnimImportProps, SM64_AnimTableProps


def emulate_no_loop(scene: Scene):
export_props = scene.fast64.sm64.anim_export

Expand Down Expand Up @@ -358,6 +359,7 @@ def execute_operator(self, context: Context):
raise PluginError(f"Unimplemented export type ({sm64_props.export_type})")

self.report({"INFO"}, "Animation table exported successfully.")

def execute(self, context: Context):
starting_context_mode = context.mode
try:
Expand Down

0 comments on commit 0ec2df6

Please sign in to comment.