Skip to content

Commit

Permalink
plugin - set default rb flag to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
HENDRIX-ZT2 committed Nov 2, 2023
1 parent 9d5c1cf commit 04530bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion plugin/modules_export/armature.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,18 @@ def export_joints(bone_info, corrector):
rb.unk_1 = b_rb.cobra_coll.damping_3d[0]
rb.unk_2 = b_rb.cobra_coll.damping_3d[1]
rb.unk_4 = b_rb.cobra_coll.damping_3d[2]
# todo - determine from active / passive?
# dinos are 1
rb.flag = 1
else:
rb.mass = -1.0
j_map = {j.name: j for j in joints.joint_infos}
# update the ragdolls to make sure they point to valid joints
for rd in joints.ragdoll_constraints:
rd.parent.joint = j_map[rd.parent.joint.name]
rd.child.joint = j_map[rd.child.joint.name]

# unsure what this does
joints.joint_entry_count = 16 if joints.joint_count > 1 else 0

def get_joint_matrix(b_joint):
b_arm = b_joint.parent
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2ab80d20 - Thu Nov 2 21:47:22 2023 +0100
9d5c1cf7 - Thu Nov 2 22:00:09 2023 +0100

0 comments on commit 04530bb

Please sign in to comment.