Pose library panel doesn't play well with left click keymap for viewport rotation #91538

Closed
opened 2021-09-20 18:12:19 +02:00 by Dalai Felinto · 7 comments

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-20 11:12, hash: fc4f82d200
Worked: -

Short description of error

I've set my keymap shortcut to use left mouse click for rotation. Now when I drag my mouse in a pose library item, it is rotating the viewport.

Exact steps for others to reproduce the error

  1. Open file:
    asset-browser-shotcurt.blend

  2. Run script to set the keymap (it is in the text editor):

import bpy

active_keyconfig = bpy.context.window_manager.keyconfigs[bpy.context.preferences.keymap.active_keyconfig]
keymap = active_keyconfig.keymaps['3D View']
keymap.keymap_items['view3d.rotate'].type = 'LEFTMOUSE'
  1. Try to drag one of the pose library items into the viewport. It rotates the viewport while doing that.

I'm actually running into this problem for the Blender 101 template , which uses the same asset browser panels in the viewport. But I managed to reproduce this in master using the pose library panels.

**Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-20 11:12, hash: `fc4f82d200` Worked: - **Short description of error** I've set my keymap shortcut to use left mouse click for rotation. Now when I drag my mouse in a pose library item, it is rotating the viewport. **Exact steps for others to reproduce the error** 1. Open file: [asset-browser-shotcurt.blend](https://archive.blender.org/developer/F10515903/asset-browser-shotcurt.blend) 2. Run script to set the keymap (it is in the text editor): ``` import bpy active_keyconfig = bpy.context.window_manager.keyconfigs[bpy.context.preferences.keymap.active_keyconfig] keymap = active_keyconfig.keymaps['3D View'] keymap.keymap_items['view3d.rotate'].type = 'LEFTMOUSE' ``` 3. Try to drag one of the pose library items into the viewport. It rotates the viewport while doing that. I'm actually running into this problem for the [Blender 101 template ](https://developer.blender.org/T90025), which uses the same asset browser panels in the viewport. But I managed to reproduce this in master using the pose library panels.
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Setting to bug for now since it causes both the asset drag operation and the view rotation to run in parallel.

Note to self or whoever wants to work on this: Problem is this return WM_UI_HANDLER_CONTINUE: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface_handlers.c$4815. Need to find out why it's there and if we can avoid it.

Setting to bug for now since it causes both the asset drag operation and the view rotation to run in parallel. Note to self or whoever wants to work on this: Problem is this `return WM_UI_HANDLER_CONTINUE`: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/interface_handlers.c$4815. Need to find out why it's there and if we can avoid it.
Member

Didn't test yet, but will likely be fixed by D13539.

Didn't test yet, but will likely be fixed by [D13539](https://archive.blender.org/developer/D13539).

This issue was referenced by 87c13ac68c

This issue was referenced by 87c13ac68c477486adecd8d548a016309fc2b54d
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julian Eisel self-assigned this 2022-01-27 18:46:24 +01:00
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
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#91538
No description provided.