Skip to content

Commit

Permalink
fix uncofortable behaviour on overwright
Browse files Browse the repository at this point in the history
  • Loading branch information
SAM-tak committed Nov 16, 2023
1 parent f18d129 commit 8f02719
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gamerig/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def generate_rig(context, metarig):
obj.data.edit_bones.remove(bone)
bpy.ops.object.mode_set(mode='OBJECT')

# Remove all bone collections.
for col in obj.data.collections:
obj.data.collections.remove(col)
bpy.ops.object.mode_set(mode='OBJECT')

# Create temporary duplicates for merging
temp_rig_1 = metarig.copy()
temp_rig_1.data = metarig.data.copy()
Expand Down

0 comments on commit 8f02719

Please sign in to comment.