Cannot rotate view while using Knife tool with Maya preset #34663

Closed
opened 2013-03-17 10:20:44 +01:00 by Jason Stark · 11 comments

%%%--- Operating System, Graphics card ---

Windows 7, and graphics card

- Blender version with error, and version that worked ---

2.66a, never worked

- Short description of error ---

While using the default Blender keyboard shortcuts, it is possible (and extremely useful) to rotate the 3D view while using the knife tool. This is impossible to do while using the Maya keys.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

Start Blender and select the Maya preset
Select the default box mesh object.
Enter Edit mode.
Select the Knife tool
Attempt to rotate the 3d view. Note that the view does not rotate as the Knife tool appears to be blocking input.%%%

%%%--- Operating System, Graphics card --- Windows 7, and graphics card - Blender version with error, and version that worked --- 2.66a, never worked - Short description of error --- While using the default Blender keyboard shortcuts, it is possible (and extremely useful) to rotate the 3D view while using the knife tool. This is impossible to do while using the Maya keys. - Steps for others to reproduce the error (preferably based on attached .blend file) --- Start Blender and select the Maya preset Select the default box mesh object. Enter Edit mode. Select the Knife tool Attempt to rotate the 3d view. Note that the view does not rotate as the Knife tool appears to be blocking input.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%Maya view rotations use leftmouse, so do does the knife tool. Blender's default is to use middlemouse and scrollwheel. That is still hardcoded in the knife tool.

Campbell: the knife tool has a "MODE_PANNING" state, it could be nice to set this in the modal map as well, to define the shortcut(s) that have to be passed on.
%%%

%%%Maya view rotations use leftmouse, so do does the knife tool. Blender's default is to use middlemouse and scrollwheel. That is still hardcoded in the knife tool. Campbell: the knife tool has a "MODE_PANNING" state, it could be nice to set this in the modal map as well, to define the shortcut(s) that have to be passed on. %%%

%%%Any non-default controls for rotate and pan view have this problem. I hope someone is working on this. It wasn't fixed in 2.67.%%%

%%%Any non-default controls for rotate and pan view have this problem. I hope someone is working on this. It wasn't fixed in 2.67.%%%

%%%Just to add to the issue, OSX navigation devices (trackpad, magic mouse) can't navigate during the operator either.
Only MMB scrollwheel and MMB click are free to work (unless you set 'emulate-3-button mouse') %%%

%%%Just to add to the issue, OSX navigation devices (trackpad, magic mouse) can't navigate during the operator either. Only MMB scrollwheel and MMB click are free to work (unless you set 'emulate-3-button mouse') %%%

%%%(for the records, OSX navigation issue fixed on rev. 60204)%%%

%%%(for the records, OSX navigation issue fixed on rev. 60204)%%%

%%%Attached is a patch that solves this problem. Campbell, can you review it?%%%

%%%Attached is a patch that solves this problem. Campbell, can you review it?%%%

%%%I looked a bit further in other related fixes, and I'm confident the patch (with small change to set space_type='EMPTY', region_type='WINDOW') is correct.
@Cambpell, feel free to adjust it on trunk or to poke me.

fiexd on rev.60207%%%

%%%I looked a bit further in other related fixes, and I'm confident the patch (with small change to set space_type='EMPTY', region_type='WINDOW') is correct. @Cambpell, feel free to adjust it on trunk or to poke me. fiexd on rev.60207%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @bluefox

Added subscriber: @bluefox

@ideasman42

I'm experiencing this issue on the latest Blender 2.8 beta. Specifically when I change the keymap for rotate view to (Alt Left Mouse). In an attempt to avoid making a duplicate bug I wanted to comment on here first and see what I should do to re-open ? this bug. Thanks!

@ideasman42 I'm experiencing this issue on the latest Blender 2.8 beta. Specifically when I change the keymap for rotate view to (Alt Left Mouse). In an attempt to avoid making a duplicate bug I wanted to comment on here first and see what I should do to re-open ? this bug. Thanks!

In Blender2.8 the knife keymap uses "any", see:

release/scripts/presets/keyconfig/keymap_data/blender_default.py

("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "any": True}, None),

The solution here would be to expand this to allow for all modifier combinations (shift & ctrl):

("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY'}, None),
("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "ctrl": True}, None),
("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "shift": True}, None),
("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "ctrl": True, "shift": True}, None),

This is needed because ctrl and shift keys are used in this modal map.

In Blender2.8 the knife keymap uses "any", see: `release/scripts/presets/keyconfig/keymap_data/blender_default.py` ``` ("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "any": True}, None), ``` The solution here would be to expand this to allow for all modifier combinations (shift & ctrl): ``` ("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY'}, None), ("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "ctrl": True}, None), ("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "shift": True}, None), ("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "ctrl": True, "shift": True}, None), ``` This is needed because ctrl and shift keys are used in this modal map.
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
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
6 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#34663
No description provided.