Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Dirty fix to export scaling #33

Open
wants to merge 1 commit into
base: blender_28
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ class ExportSEAnim(bpy.types.Operator, ExportHelper):
options={'ENUM_FLAG'},
items=(('LOC', "Location", ""),
('ROT', "Rotation", ""),
# ('SCALE', "Scale", ""), # Not Currently Supported # nopep8
('SCALE', "Scale", ""), # Not Currently Supported # nopep8
),
default={'LOC', 'ROT'}, # , 'SCALE'},
default={'LOC', 'ROT', 'SCALE'},
)

every_frame: BoolProperty(
Expand Down
18 changes: 13 additions & 5 deletions export_seanim.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,27 @@ def export_action(self, context, progress, action, filepath):
raise
pose_bone = prop.data

if prop == pose_bone.location.owner:
location_owner = False
rotation_owner = False

try:
rotation_owner = (
prop == pose_bone.rotation_quaternion.owner or prop == pose_bone.rotation_euler.owner or prop == pose_bone.rotation_axis_angle.owner)
location_owner = prop == pose_bone.location.owner
except Exception as e:
pass

if location_owner:
if not use_keys_loc:
continue
# print("LOC")
index = 0
elif(prop == pose_bone.rotation_quaternion.owner or
prop == pose_bone.rotation_euler.owner or
prop == pose_bone.rotation_axis_angle.owner):
elif rotation_owner:
if not use_keys_rot:
continue
# print("ROT")
index = 1
elif owner is pose_bone.scale.owner:
elif prop == pose_bone.scale.owner:
if not use_keys_scale:
continue
# print("SCALE")
Expand Down