Double tap to confirm and drag support for translation tools. #29945

Closed
opened 2012-01-21 18:58:05 +01:00 by Jorge Rodriguez · 5 comments

%%%Note: This patch is an update of #29919. An error prevented me from uploading an updated patch and I could find no way to edit the description so I created a new patch. The other can be closed.

  • This patch is against svn r43583

Changes:

  • A new option for the transform tool allows the user to press the grab/rotate/resize button while the tool is already active to confirm the current transformation. If the option is on then in the case of switching rotation modes, this functionality has been moved to Shift-R instead. When using a transform tool bound to right click, right clicking will confirm instead of cancel; otherwise it will cancel like before.
  • A new option for holding the transform button/key to drag the object. If the user holds for longer than 250ms or farther than 10 pixels then the action is treated like a drag and when the key is released the transformation is automatically confirmed.

Notes:

  • This patch removes some duplicate code in the modal handler for transform events.
  • In order to support this patch some slight changes have been made in the way handler operators are called. Duplicate button/key presses are now filtered by the handler and not sent to the operator, and information about the handler/keymapitem which invoked the operator (if any) have been added to the wmOperator structure.
  • The previous event state also now includes the "prevkeytime" - the time that the previous keyboard key was pressed.

Justification:

This patch attempts to improve the usability of the transformation tools by implementing behavior which most users will expect. If a button is pressed once to activate a tool, than users can expect to be able to press that same button again to deactivate the tool. If the user presses and holds the button then the functionality should remain active for as long an the button is held down and then deactivate when it is released.

Since the new behavior is optional and defaults to off, it should have no impact on existing Blender users.%%%

%%%Note: This patch is an update of #29919. An error prevented me from uploading an updated patch and I could find no way to edit the description so I created a new patch. The other can be closed. * This patch is against svn r43583 Changes: * A new option for the transform tool allows the user to press the grab/rotate/resize button while the tool is already active to confirm the current transformation. If the option is on then in the case of switching rotation modes, this functionality has been moved to Shift-R instead. When using a transform tool bound to right click, right clicking will confirm instead of cancel; otherwise it will cancel like before. * A new option for holding the transform button/key to drag the object. If the user holds for longer than 250ms or farther than 10 pixels then the action is treated like a drag and when the key is released the transformation is automatically confirmed. Notes: * This patch removes some duplicate code in the modal handler for transform events. * In order to support this patch some slight changes have been made in the way handler operators are called. Duplicate button/key presses are now filtered by the handler and not sent to the operator, and information about the handler/keymapitem which invoked the operator (if any) have been added to the wmOperator structure. * The previous event state also now includes the "prevkeytime" - the time that the previous keyboard key was pressed. Justification: This patch attempts to improve the usability of the transformation tools by implementing behavior which most users will expect. If a button is pressed once to activate a tool, than users can expect to be able to press that same button again to deactivate the tool. If the user presses and holds the button then the functionality should remain active for as long an the button is held down and then deactivate when it is released. Since the new behavior is optional and defaults to off, it should have no impact on existing Blender users.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

Hi, thanks for your patch.

We are undergoing a Tracker Curfew where we are automatically closing old patches.

If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.

Hi, thanks for your patch. We are undergoing a [Tracker Curfew ](https://code.blender.org/?p=3861) where we are automatically closing old patches. If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#29945
No description provided.