Skip to content

Commit

Permalink
Merge pull request #126 from james-baber/fix-flipping-bones
Browse files Browse the repository at this point in the history
fixed jittering bones in unreal and rigify locked IK poles.
fixes issues:
#55
#38
#120
  • Loading branch information
james-baber authored Oct 23, 2020
2 parents ce7a756 + c9d5117 commit 9300269
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion send2ue/addon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
bl_info = {
"name": "Send to Unreal",
"author": "Epic Games Inc.",
"version": (1, 4, 8), # addon plugin version
"version": (1, 4, 9), # addon plugin version
"blender": (2, 83, 0), # minimum blender version
"location": "Header > Pipeline > Export > Send to Unreal",
"description": "Sends an asset to the first open Unreal Editor instance on your machine.",
Expand Down
1 change: 1 addition & 0 deletions send2ue/addon/functions/unreal.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def import_asset(asset_data, properties):
f'\t\toptions.set_editor_property("skeleton", skeleton_asset)',
f'\t\toptions.set_editor_property("original_import_type", unreal.FBXImportType.FBXIT_ANIMATION)',
f'\t\toptions.set_editor_property("mesh_type_to_import", unreal.FBXImportType.FBXIT_ANIMATION)',
f'\t\toptions.anim_sequence_import_data.set_editor_property("preserve_local_transform", True)',
f'\telse:',
f'\t\traise RuntimeError("Unreal could not find a skeleton here: {asset_data.get("skeleton_game_path")}")',

Expand Down
2 changes: 1 addition & 1 deletion ue2rigify/addon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "Epic Games Inc.",
"description": "Allows you to convert a given rig and its animations to a Rigify rig.",
"blender": (2, 83, 0),
"version": (1, 3, 9),
"version": (1, 3, 10),
"location": "3D View > Tools > UE to Rigify",
"wiki_url": "https://github.com/EpicGames/BlenderTools/wiki/UE-to-Rigify-Home",
"warning": "",
Expand Down
5 changes: 0 additions & 5 deletions ue2rigify/addon/functions/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,6 @@ def set_fk_ik_switch_values(rig_object, value):
:param object rig_object: A blender object that contains armature data.
:param float value: The floating point value of the FK to IK slider.
"""
# change the ik solver type and mode to reduce bone jitter in unreal
rig_object.pose.ik_solver = 'ITASC'
rig_object.pose.ik_param.mode = 'SIMULATION'
rig_object.pose.ik_param.reiteration_method = 'ALWAYS'

for bone in rig_object.pose.bones:
if isinstance(bone.get("IK_FK"), float):
bone['IK_FK'] = value
Expand Down

0 comments on commit 9300269

Please sign in to comment.