Skip to content

Commit

Permalink
Merge pull request #124 from OctavoPE/main
Browse files Browse the repository at this point in the history
Added support for 4.1
  • Loading branch information
michael-gh1 authored Aug 18, 2024
2 parents 501fc59 + f5c18df commit b9dd7ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions setup_wizard/character_rig_setup/npc_rig_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,8 +2109,10 @@ def swap_const_follow_in_const(bone, constraint_type, new_var):
if is_version_4:
armature = bpy.context.object.data
collections = armature.collections
for coll in collections:
collections.remove(coll)

del_collections = bpy.context.active_object.data.collections
while del_collections:
del_collections.remove(del_collections[0])

collections.new("Tweaks")
collections.new("Pivots & Pins")
Expand Down
7 changes: 5 additions & 2 deletions setup_wizard/character_rig_setup/rig_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2572,8 +2572,11 @@ def swap_const_follow_in_const(bone, constraint_type, new_var):
if is_version_4:
armature = bpy.context.object.data
collections = armature.collections
for coll in collections:
collections.remove(coll)

del_collections = bpy.context.active_object.data.collections
while del_collections:
del_collections.remove(del_collections[0])


collections.new("Tweaks")
collections.new("Pivots & Pins")
Expand Down

0 comments on commit b9dd7ce

Please sign in to comment.