Fix issue with mirroring groups

This commit is contained in:
JannisX11 2021-03-08 17:05:00 +01:00
parent c429e9af29
commit 66f37e39f2
2 changed files with 3 additions and 4 deletions

View File

@ -860,9 +860,7 @@
return;
}
this.rotation_object = rotation_object;
if (_has_groups && Format.bone_rig && !Modes.animate) {
Canvas.updateAllBones()
}
//Center
if (Toolbox.selected.id === 'rotate_tool' || Toolbox.selected.id === 'pivot_tool') {
rotation_object.mesh.getWorldPosition(this.position)

View File

@ -177,6 +177,7 @@ function mirrorSelected(axis) {
group.name = group.name.replace(/left/g, 'right').replace(/2/, '');
}
}
Canvas.updateAllBones([group]);
}
flipGroup(Group.selected)
Group.selected.forEachChild(flipGroup)
@ -1307,7 +1308,7 @@ BARS.defineActions(function() {
color: 'x',
category: 'transform',
click: function () {
mirrorSelected(0);
mirrorSelected(0);
}
})
new Action('flip_y', {