Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mirror mode breaking merge bones #593

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/armature_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ def execute(self, context):

Common.switch('EDIT')

armature.data.use_mirror_x = False #<- fixes merge bones issues - @989onan
armature.pose.use_mirror_x = False #<- fixes merge bones issues - @989onan

# Find which bones to work on and put their name and their parent in a list
parenting_list = {}
for bone in context.selected_editable_bones:
Expand Down Expand Up @@ -839,6 +842,9 @@ def execute(self, context):

Common.switch('EDIT')

armature.data.use_mirror_x = False #<- fixes merge bones issues - @989onan
armature.pose.use_mirror_x = False #<- fixes merge bones issues - @989onan

# Find which bones to work on and put their name and their parent in a list and parent the bones to the active one
parenting_list = {}
for bone in bpy.context.selected_editable_bones:
Expand Down
2 changes: 2 additions & 0 deletions tools/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def set_default_stage():
armature = get_armature()
if armature:
set_active(armature)
armature.data.use_mirror_x = False #<- fixes merge bones issues - @989onan
armature.pose.use_mirror_x = False #<- fixes merge bones issues - @989onan
if version_2_79_or_older():
armature.layers[0] = True

Expand Down