VSE in Preview mode, assigned hotkeys does not show in tooltip of transform tools in toolshelf #118190
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118190
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.23
Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-02-11 06:19, hash:
835b9a506d44
Worked: 4.0
Likely caused by
fa6384eb39
Short description of error
Adding a shortcut to one of the transform tools in the vse toolshelf in preview mode does not show the shortcut in the tooltip, and is also not removeable. In the 3d view for example it is.
Exact steps for others to reproduce the error
Might be related: #92140
Hi, thanks for the report. Can confirm
cc @iss
Will check
@Harley If you assign unused shortcut, VSE will not show it in tooltip, but also does not allow you to clear the shortcut.
In any case will check this more in detail now, and see if I can make sense of why this happens
I think, that priority could be lowered, since this is not exacly caused by anything, as assigning shortcuts to VSE tools did not work before.
Will post findings here in edits in order to not spam this thread:
So far it seems, that
but->opcontext
is set to incorrect value inui_popup_context_menu_for_button()
Ok, so attempt to set
but->opcontext
fromED_region_panels_ex()
is completely wrong. Even if this is fixed, it doesn't seem to work.@iss
I am a little over my skiis here since I don't know these areas very well. So the following might only give clues to what the problem might be, not necessarily the fix.
But with the following changes...
The change to
remove_shortcut_func
allows the shortcut removal to work without error. Changes toui_popup_context_menu_for_button
allows the "remove shortcut" to appear in the context menu. And changes toWM_key_event_operator_string
then show the shortcut on the tooltip.But I really have no idea why this way of getting the wmKeyMap and wmKeyMapItem (using WM_keymap_guess_opname and WM_key_event_operator_from_keymap) work in these cases while
wm_keymap_item_find
andWM_key_event_operator
do not. So I don't know if this points to errors in the latter, or if the above changes would have some bad side effects.I am assuming you know this stuff better than me. If not, I could always post this as a fix for this issue and assign Campbell as reviewer?
Thanks for your pointers. Preview area should set
but->opcontext
for toolbar, but for some reason it is not picked up. Hardcoding opcontext forWM_key_event_operator()
inui_popup_context_menu_for_button()
also causes VSE toolbar to work. So I would say, that code is OK and issue is somewhere on VSE UI side. I am also struggling a bit to follow data structures here and figuring out where to put debug prints :) Your code snippet is pretty much black magic :PYes, that sounds right. My change probably just ignores that error and might cause problems elsewhere.
Oh, I see. That part works if you force it to WM_OP_INVOKE_REGION_PREVIEW. I see it set to WM_OP_INVOKE_REGION_WIN at that point.
A weird thing I am seeing is that
sequencer_tools_region_draw
seems to always set WM_OP_INVOKE_REGION_WIN. It has a switch in there that I never see hitting any of the cases. I only see this function called with a region->regiontype of RGN_TYPE_TOOLS, which makes sense to me because that is the type of the region as it is defined at about line 1047.However, if I change
sequencer_tools_region_draw
to always sets an op_context of WM_OP_INVOKE_REGION_PREVIEW it doesn't seem to do anything. As in the op_context when it is evaluated in ui_popup_context_menu_for_button is still WM_OP_INVOKE_REGION_WIN.Well turns out, that solution looks about like #118292. That somehow works for toolbar in timeline, which it should not...