Skip to content

Commit

Permalink
feat: automatically set geometry mirror axis to Z and flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed May 7, 2022
1 parent 9c13ab6 commit 426ed79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions power_mods/mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def invoke(self, context, event):
self.report({'ERROR'}, "Please select only one object")

self.dirty = False
self.axis = 0
self.flip = False
self.axis = 2 if self.geometry_mode else 0
self.flip = self.geometry_mode
self.reference_objs = [context.active_object]
self.mirror_obj = None

Expand Down Expand Up @@ -298,6 +298,7 @@ def complete_geometry_mode(self, context):
register_axis_handler(self)

self.geometry_ready = True
self.operate(context)

return {'RUNNING_MODAL'}

Expand Down

0 comments on commit 426ed79

Please sign in to comment.