Skip to content

Commit

Permalink
fix: ensure mirror selected object show_in_front mode is disabled on …
Browse files Browse the repository at this point in the history
…complete/cancel
  • Loading branch information
tristan-hm committed May 14, 2022
1 parent d5e0bc1 commit e2d0e07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion power_mods/mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,15 @@ def select_reference_objs(self, context):
def finish(self, context):
self.select_reference_objs(context)

context.object.show_in_front = False

unregister_draw_handler()
unregister_axis_handler()


def revert(self, context):
if self.geometry_mode and not self.geometry_ready:
bpy.ops.object.mode_set(mode='OBJECT')
context.object.show_in_front = False
bpy.ops.object.delete()

self.select_reference_objs(context)
Expand All @@ -365,6 +366,8 @@ def revert(self, context):
if self.geometry_mode and self.geometry_ready:
bpy.data.objects.remove(self.mirror_obj, do_unlink=True)

context.object.show_in_front = False

unregister_draw_handler()
unregister_axis_handler()

Expand Down

0 comments on commit e2d0e07

Please sign in to comment.