Python Templates: Small fix for gizmo custom geometry

The mouse offset was inverted (the widget was going the opposite direction as the
mouse movement).
This commit is contained in:
Dalai Felinto 2019-06-28 09:54:27 -03:00
parent 30d65c326a
commit f5e0ae655e
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class MyCustomShapeWidget(Gizmo):
delta = round(delta)
if 'PRECISE' in tweak:
delta /= 10.0
value = self.init_value + delta
value = self.init_value - delta
self.target_set_value("offset", value)
context.area.header_text_set("My Gizmo: %.4f" % value)
return {'RUNNING_MODAL'}