Skip to content

Commit

Permalink
feat: ensure mirror modifiers are placed before finishing bevels in t…
Browse files Browse the repository at this point in the history
…he modifier stack
  • Loading branch information
tristan-hm committed Jun 24, 2022
1 parent e62687c commit 5751adb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions replicate/mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from .. lib.viewport import set_3d_cursor
from .. lib.math import v3_average, create_rotation_matrix_from_vertex, create_rotation_matrix_from_edge, create_rotation_matrix_from_face, v3_center
from .. lib.collections import move_to_utils_collection, isolate_in_utils_collection
from .. lib.modifiers import rectify_mod_order


class ND_OT_mirror(bpy.types.Operator):
bl_idname = "nd.mirror"
Expand Down Expand Up @@ -320,6 +322,7 @@ def add_mirror_modifiers(self):
mirror.mirror_object = self.mirror_obj

self.mirrors.append(mirror)
rectify_mod_order(obj, mirror.name)

if self.early_apply:
while obj.modifiers[0].name != mirror.name:
Expand Down

0 comments on commit 5751adb

Please sign in to comment.