forked from bartvdbraak/blender
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:
parent
30d65c326a
commit
f5e0ae655e
@ -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'}
|
||||
|
Loading…
Reference in New Issue
Block a user