Fix #81948: Sculpt mode Annotation tool cursor conflict #118255

Merged

This fix checks if the annotation tool is active in bool SCULPT_mode_poll_view3d(bContext *C) to hide the sculpt cursor .

This fix checks if the annotation tool is active in `bool SCULPT_mode_poll_view3d(bContext *C)` to hide the sculpt cursor .
Raul Fernandez Hernandez added 1 commit 2024-02-14 12:04:58 +01:00
Member

Fixes the issue really well for both Annotate operators and the tool.
Looks all good on the user side 👍

Fixes the issue really well for both Annotate operators and the tool. Looks all good on the user side 👍
Hans Goudey reviewed 2024-02-14 16:11:10 +01:00
Hans Goudey left a comment
Member

I would check how this is solved in other modes. This fix seems a bit strange, because ideally SCULPT_mode_poll_view3d wouldn't have to know about the annotate tool.

I would check how this is solved in other modes. This fix seems a bit strange, because ideally `SCULPT_mode_poll_view3d` wouldn't have to know about the annotate tool.
Hans Goudey changed title from Fix #81948 Regression: Sculpt mode Annotation tool cursor conflict to Fix #81948: Sculpt mode Annotation tool cursor conflict 2024-02-14 16:11:22 +01:00
Raul Fernandez Hernandez changed title from Fix #81948: Sculpt mode Annotation tool cursor conflict to WIP Fix #81948: Sculpt mode Annotation tool cursor conflict 2024-02-14 18:33:56 +01:00
Author
Member

I would check how this is solved in other modes. This fix seems a bit strange, because ideally SCULPT_mode_poll_view3d wouldn't have to know about the annotate tool.

I agree with that, the main issue is that in order for sculpt mode cursor not overlap with annotation cursor both modes should be mutually exclusive and currently they are not. At some point there must be a code logic to prevent that overlap.

bool SCULPT_mode_poll(bContext *C) { Object *ob = CTX_data_active_object(C); return ob && ob->mode & OB_MODE_SCULPT; <--- annotation can be active and still be in sculpt mode so this check is necessary but not sufficient } I'm still trying to find a necessary and sufficient check to prevent the overlap of cursors while minimizing the coupling between annotation and sculpting, but this PR can be a workaround to fix this bug if no other simple solution is available.

> I would check how this is solved in other modes. This fix seems a bit strange, because ideally `SCULPT_mode_poll_view3d` wouldn't have to know about the annotate tool. I agree with that, the main issue is that in order for sculpt mode cursor not overlap with annotation cursor both modes should be mutually exclusive and currently they are not. At some point there must be a code logic to prevent that overlap. `bool SCULPT_mode_poll(bContext *C) { Object *ob = CTX_data_active_object(C); return ob && ob->mode & OB_MODE_SCULPT; <--- annotation can be active and still be in sculpt mode so this check is necessary but not sufficient } `I'm still trying to find a necessary and sufficient check to prevent the overlap of cursors while minimizing the coupling between annotation and sculpting, but this PR can be a workaround to fix this bug if no other simple solution is available.
Hans Goudey approved these changes 2024-02-15 05:54:22 +01:00
Hans Goudey left a comment
Member

Okay, yeah, fair enough. I was thinking there would be other modes with this sort of cursor but actually there isn't, they're just changing the mouse cursor itself. And like you say, this isn't invasive at all, so easy to clean it up later if we find a different way to check.

Okay, yeah, fair enough. I was thinking there would be other modes with this sort of cursor but actually there isn't, they're just changing the mouse cursor itself. And like you say, this isn't invasive at all, so easy to clean it up later if we find a different way to check.
Raul Fernandez Hernandez changed title from WIP Fix #81948: Sculpt mode Annotation tool cursor conflict to Fix #81948: Sculpt mode Annotation tool cursor conflict 2024-02-15 06:00:29 +01:00
Raul Fernandez Hernandez merged commit ed6f8c5b86 into main 2024-02-15 15:28:26 +01:00
Raul Fernandez Hernandez deleted branch Sculpt-mode-Annotation-tool-cursor-conflict 2024-02-15 15:28:28 +01:00
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#118255
No description provided.