GP/Annotation UI: Wrong icon and behaviour in the wrong regions #88617

Closed
opened 2021-05-27 09:43:59 +02:00 by tintwotin · 16 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30

Blender Version
Broken: version: 3.0.0 Alpha, branch: master (modified), commit date: 2021-05-26 18:32, hash: 2c607ec2f6

Short Description
As I was asked to make a new report on this GP UI issues in D11347, here it is:
In Sequencer/Preview mode the mouse cursor changes into the pen in the area where you can't draw(the strip area), and if you try to draw in that area, a point will light up in the preview area

Steps to Reproduce

  • Open default scene
  • Switch to video sequencer editor and select Sequencer & Preview
  • Select annotation tool and hover the mouse on preview area (pen cursor is not present)
    {F10135003,size=full}
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master (modified), commit date: 2021-05-26 18:32, hash: `2c607ec2f6` **Short Description** As I was asked to make a new report on this GP UI issues in [D11347](https://archive.blender.org/developer/D11347), here it is: In Sequencer/Preview mode the mouse cursor changes into the pen in the area where you can't draw(the strip area), and if you try to draw in that area, a point will light up in the preview area **Steps to Reproduce** - Open default scene - Switch to video sequencer editor and select `Sequencer & Preview` - Select annotation tool and hover the mouse on preview area (pen cursor is not present) {[F10135003](https://archive.blender.org/developer/F10135003/wrong_icon_and_position.gif),size=full}
Author

Added subscriber: @tintwotin

Added subscriber: @tintwotin
kathybowing commented 2021-05-27 13:18:28 +02:00 (Migrated from localhost:3001)

Added subscriber: @kathybowing

Added subscriber: @kathybowing
Member

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

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

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Added subscribers: @ideasman42, @antoniov

Added subscribers: @ideasman42, @antoniov

@ideasman42 Do you know how to fix this?

@ideasman42 Do you know how to fix this?
Author

Removed subscriber: @tintwotin

Removed subscriber: @tintwotin
Author

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Author

As I do not have anymore time or motivation for a continued investment in the Blender project, I'm giving up on this report for now.

As I do not have anymore time or motivation for a continued investment in the Blender project, I'm giving up on this report for now.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Archived' to: 'Confirmed'

Changed status from 'Archived' to: 'Confirmed'
Member

Sorry to hear (thx again reporting). In my opinion we should not sweep this under the carpet (esp. since this already been confirmed), there is still a chance to get this fixed in the future and others might be affected by this issue as well.
Feel free to unsubscribe though.

Sorry to hear (thx again reporting). In my opinion we should not sweep this under the carpet (esp. since this already been confirmed), there is still a chance to get this fixed in the future and others might be affected by this issue as well. Feel free to unsubscribe though.
Member

This happens because: cursor is set to default for the regions other than window. A quick fix would be to add preview region to change the cursor type as per the selected tool

index f7c030db1cd..74e760013fd 100644
    - a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -173,7 +173,7 @@ void WM_cursor_set(wmWindow *win, int curs)

 bool WM_cursor_set_from_tool(struct wmWindow *win, const ScrArea *area, const ARegion *region)
 {
- if (region && (region->regiontype != RGN_TYPE_WINDOW)) {
+  if (region && !ELEM(region->regiontype, RGN_TYPE_WINDOW, RGN_TYPE_PREVIEW)) {

return false;
}```

- - -
But this doesn't completely fix the issue. `WM_CURSOR_PAINT_BRUSH` cursor still appear when hovered over sequencer region.
I'll give a try to fix this
This happens because: cursor is set to default for the regions other than `window`. A quick fix would be to add preview region to change the cursor type as per the selected tool ```diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c index f7c030db1cd..74e760013fd 100644 - a/source/blender/windowmanager/intern/wm_cursors.c +++ b/source/blender/windowmanager/intern/wm_cursors.c @@ -173,7 +173,7 @@ void WM_cursor_set(wmWindow *win, int curs) bool WM_cursor_set_from_tool(struct wmWindow *win, const ScrArea *area, const ARegion *region) { - if (region && (region->regiontype != RGN_TYPE_WINDOW)) { + if (region && !ELEM(region->regiontype, RGN_TYPE_WINDOW, RGN_TYPE_PREVIEW)) { ``` return false; }``` ``` - - - But this doesn't completely fix the issue. `WM_CURSOR_PAINT_BRUSH` cursor still appear when hovered over sequencer region. I'll give a try to fix this
Pratik Borhade self-assigned this 2022-12-28 14:29:08 +01:00
Member

Removed subscriber: @kathybowing

Removed subscriber: @kathybowing

This issue was referenced by 1a13940ef8

This issue was referenced by 1a13940ef80890e3f73f41061c31ed00b8298640
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
5 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#88617
No description provided.