diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-06-28 15:54:27 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-06-28 15:57:16 +0300 |
commit | f5e0ae655e5182de3ee9cfedfbdc2a20f9b047fb (patch) | |
tree | 1af8402232996b53a71ddb20833eaf769faee853 /release/scripts/templates_py/gizmo_custom_geometry.py | |
parent | 30d65c326aaef310f8a949dc0e99f0e3a656d307 (diff) |
Python Templates: Small fix for gizmo custom geometry
The mouse offset was inverted (the widget was going the opposite direction as the
mouse movement).
Diffstat (limited to 'release/scripts/templates_py/gizmo_custom_geometry.py')
-rw-r--r-- | release/scripts/templates_py/gizmo_custom_geometry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates_py/gizmo_custom_geometry.py b/release/scripts/templates_py/gizmo_custom_geometry.py index fba2b0269c4..b8621c834ab 100644 --- a/release/scripts/templates_py/gizmo_custom_geometry.py +++ b/release/scripts/templates_py/gizmo_custom_geometry.py @@ -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'} |