[Bf-blender-cvs] [b01392e9ac3] blender2.8: Tools: disable fallback drag action for transform

Campbell Barton noreply at git.blender.org
Thu Jun 28 10:39:02 CEST 2018


Commit: b01392e9ac338d8816e30d076577af7598c36a9e
Author: Campbell Barton
Date:   Thu Jun 28 10:34:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb01392e9ac338d8816e30d076577af7598c36a9e

Tools: disable fallback drag action for transform

Based on animator feedback, accidentally not clicking on the manipulator
handle had unpredictable behavior.

This functionality will be moved into the manipulator and made optional
(add an invisible fallback manipulator).

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index c5c17d2c3cb..110611cf7ab 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -131,36 +131,39 @@ class _defs_transform:
     def translate():
         return dict(
             text="Move",
-            cursor='SCROLL_XY',
+            # cursor='SCROLL_XY',
             icon="ops.transform.translate",
             widget="TRANSFORM_WGT_manipulator",
-            keymap=(
-                ("transform.translate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
-            ),
+            # TODO, implement as optional fallback manipulator
+            # keymap=(
+            #     ("transform.translate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
+            # ),
         )
 
     @ToolDef.from_fn
     def rotate():
         return dict(
             text="Rotate",
-            cursor='SCROLL_XY',
+            # cursor='SCROLL_XY',
             icon="ops.transform.rotate",
             widget="TRANSFORM_WGT_manipulator",
-            keymap=(
-                ("transform.rotate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
-            ),
+            # TODO, implement as optional fallback manipulator
+            # keymap=(
+            #     ("transform.rotate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
+            # ),
         )
 
     @ToolDef.from_fn
     def scale():
         return dict(
             text="Scale",
-            cursor='SCROLL_XY',
+            # cursor='SCROLL_XY',
             icon="ops.transform.resize",
             widget="TRANSFORM_WGT_manipulator",
-            keymap=(
-                ("transform.resize", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
-            ),
+            # TODO, implement as optional fallback manipulator
+            # keymap=(
+            #     ("transform.resize", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
+            # ),
         )
 
     @ToolDef.from_fn



More information about the Bf-blender-cvs mailing list