Fix #110848: Trackpad: Allow changing the speed while fly navigating #110930

Open
YimingWu wants to merge 5 commits from ChengduLittleA/blender:fix-110848 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

The code is already here, it was just lost during refactoring earlier.

This feature was added in 4737e08cb9 and in 3064da1200
keymap was lost, just because it wasn't added to the fly_modal_keymap
initially. This patch just adds FLY_MODAL_SPEED to modal map
so it can be selected in the keymap.

This patch was originally authored by Yevgeny Makarov (@jenkm) as
https://archive.blender.org/developer/D9641 , now porting this as a PR.

The code is already here, it was just lost during refactoring earlier. This feature was added in 4737e08cb9a5 and in 3064da1200a9 keymap was lost, just because it wasn't added to the fly_modal_keymap initially. This patch just adds FLY_MODAL_SPEED to modal map so it can be selected in the keymap. This patch was originally authored by Yevgeny Makarov (@jenkm) as https://archive.blender.org/developer/D9641 , now porting this as a PR.
YimingWu added the
Interest
User Interface
Module
User Interface
labels 2023-08-08 15:44:39 +02:00
YimingWu added 1 commit 2023-08-08 15:44:49 +02:00
51cda19c8f Fix #110848: Trackpad: Allow changing the speed while fly navigating
The code is already here, it was just lost during refactoring earlier.

This feature was added in rB4737e08cb9a5 and in rB3064da1200a9
keymap was lost, just because it wasn't added to the fly_modal_keymap
initially. This patch just adds FLY_MODAL_SPEED to modal map
so it can be selected in the keymap.

Also replace 'delta' with proper 'absolute delta'
so that the upward movement always increases the speed,
regardless of the Natural Scroll Direction preference.

This patch was originally authored by Yevgeny Makarov (@jenkm) as
https://archive.blender.org/developer/D9641 , now porting this as a PR.
YimingWu added 1 commit 2023-08-09 04:21:04 +02:00
YimingWu added 1 commit 2023-08-09 16:12:55 +02:00
Member

Can confirm this fixes the fly navigation with trackpad.
@brecht , can you review this?

Can confirm this fixes the fly navigation with trackpad. @brecht , can you review this?

Some fixes from #111141 are included here, so only the first two lines directly relate to this fix, sorry for the mess.

Some fixes from #111141 are included here, so only the first two lines directly relate to this fix, sorry for the mess.
Author
Member

@jenkm should I simply remove the change in transform.cc?

@jenkm should I simply remove the change in `transform.cc`?

@ChengduLittleA Leave only:

("SPEED", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),

{FLY_MODAL_SPEED, "SPEED", 0, "Speed", ""},

the rest is more logical in 111141 since it fixes the directions.

@ChengduLittleA Leave only: `("SPEED", {"type": 'TRACKPADPAN', "value": 'ANY'}, None),` `{FLY_MODAL_SPEED, "SPEED", 0, "Speed", ""},` the rest is more logical in 111141 since it fixes the directions.
Author
Member

@jenkm Got it. Will do :)

@jenkm Got it. Will do :)
YimingWu added 1 commit 2023-08-19 10:21:19 +02:00
Author
Member

Done. The view3d_navigate_fly.cc seems to be a white space change from clang_format.

Done. The `view3d_navigate_fly.cc` seems to be a white space change from `clang_format`.
YimingWu added 1 commit 2023-08-19 10:30:43 +02:00
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix-110848:ChengduLittleA-fix-110848
git checkout ChengduLittleA-fix-110848
Sign in to join this conversation.
No reviewers
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
Interest: X11
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#110930
No description provided.