Skip to content

Commit

Permalink
ue2rigify extension support for b4.2 (#68)
Browse files Browse the repository at this point in the history
replaced explicit get for "ue2rigify" addon with a find for detecting by substring
  • Loading branch information
JoshQuake authored Aug 6, 2024
1 parent 0110e95 commit 1ed59ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/addons/send2ue/core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def export_hair(asset_id, properties):
utilities.deselect_all_objects()

# clear animation transformations prior to export so groom exports with no distortion
# TODO: we apparently need to avoid operating on all objects in bpy.data.objects
for scene_object in bpy.data.objects:
if scene_object.animation_data:
if scene_object.animation_data.action:
Expand Down
3 changes: 1 addition & 2 deletions src/addons/send2ue/resources/extensions/ue2rigify.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def set_ue2rigify_state(self):
"""
Sets the use_ue2rigify property depending on whether to use code from the ue2rigify addon or not.
"""
# TODO: I dont think this will ever be true in blender 4.2 (master poet over here)
if bpy.context.preferences.addons.get('ue2rigify'):
if bpy.context.preferences.addons.find('ue2rigify'):
ue2rigify_properties = bpy.context.scene.ue2rigify
if ue2rigify_properties.selected_mode == self.control_mode:
self.use_ue2rigify = True
Expand Down

0 comments on commit 1ed59ed

Please sign in to comment.