Skip to content

Commit

Permalink
fix: fix the incorrect object position offset when reversing a faux o…
Browse files Browse the repository at this point in the history
…rigin displacement
  • Loading branch information
tristan-hm committed May 18, 2024
1 parent 7132c12 commit e601e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/set_origin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def revert_faux_origin(self, context):
mods = [mod for mod in context.active_object.modifiers if mod.type == 'DISPLACE' and mod.name.endswith('— ND FO')]
for mod in mods:
if mod.direction == 'X':
location.x = mod.strength
location.x += mod.strength
elif mod.direction == 'Y':
location.y = mod.strength
location.y += mod.strength
elif mod.direction == 'Z':
location.z = mod.strength
location.z += mod.strength

context.active_object.modifiers.remove(mod)

Expand Down

0 comments on commit e601e43

Please sign in to comment.