UV Editor, Manipulator disappears if AABB of selection has zero area. #103868

Closed
opened 2023-01-13 22:45:19 +01:00 by Vyacheslav · 9 comments

System Information
Operating system: Windows 10 Home
Graphics card: GTX 1660Ti

Blender Version
3.4.1
изображение.png
In the uv editor, when choosing the transformation tool, if you select the mode of edges or vertices, under normal conditions a white manipulator should appear with which you can manipulate the selected edges or vertices. example on screenshot 1.
изображение.png
However, when selecting a part of edges or several vertices, the manipulator does not appear as it should, but a white bar appears that does not allow moving edges or several vertices.
изображение.png
I think this is a bug, the manipulator should work the same in all selections.

**System Information** Operating system: Windows 10 Home Graphics card: GTX 1660Ti **Blender Version** 3.4.1 ![изображение.png](https://archive.blender.org/developer/F14148796/изображение.png) In the uv editor, when choosing the transformation tool, if you select the mode of edges or vertices, under normal conditions a white manipulator should appear with which you can manipulate the selected edges or vertices. example on screenshot 1. ![изображение.png](https://archive.blender.org/developer/F14148806/изображение.png) However, when selecting a part of edges or several vertices, the manipulator does not appear as it should, but a white bar appears that does not allow moving edges or several vertices. ![изображение.png](https://archive.blender.org/developer/F14148813/изображение.png) I think this is a bug, the manipulator should work the same in all selections.
Author

Added subscriber: @Ghostil

Added subscriber: @Ghostil
Member

Added subscribers: @Chris_Blackbourn, @PratikPB2123

Added subscribers: @Chris_Blackbourn, @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Hi, thanks for the report. I'm not sure how exactly you're expecting a gizmo to be displayed in 2nd case.
Can you elaborate it?

Hi, thanks for the report. I'm not sure how exactly you're expecting a gizmo to be displayed in 2nd case. Can you elaborate it?

The following patch will "Fix" the issue, but I'm kinda terrified to check it in:

diff --git a/source/blender/editors/transform/transform_gizmo_2d.c b/source/blender/editors/transform/transform_gizmo_2d.c
index a6eb25975e9..4ba3853c24c 100644
--- a/source/blender/editors/transform/transform_gizmo_2d.c
+++ b/source/blender/editors/transform/transform_gizmo_2d.c
@@ -604,8 +604,8 @@ static void gizmo2d_xform_draw_prepare(const bContext *C, wmGizmoGroup *gzgroup)
   UI_view2d_view_to_region_m4(&region->v2d, ggd->cage->matrix_space);
   /* Define the bounding box of the gizmo in the offset transform matrix. */
   unit_m4(ggd->cage->matrix_offset);
-  ggd->cage->matrix_offset[0][0] = (ggd->max[0] - ggd->min[0]);
-  ggd->cage->matrix_offset[1][1] = (ggd->max[1] - ggd->min[1]);
+  ggd->cage->matrix_offset[0][0] = max_ff(0.001f,(ggd->max[0] - ggd->min[0]));
+  ggd->cage->matrix_offset[1][1] = max_ff(0.001f,(ggd->max[1] - ggd->min[1]));
 
   ScrArea *area = CTX_wm_area(C);

I guess that means this is technically "Confirmed in Debugger" ???!

Can someone with a bit more familiarity with the transform gizmo take a look?

The following patch will "Fix" the issue, but I'm kinda terrified to check it in: ``` diff --git a/source/blender/editors/transform/transform_gizmo_2d.c b/source/blender/editors/transform/transform_gizmo_2d.c index a6eb25975e9..4ba3853c24c 100644 --- a/source/blender/editors/transform/transform_gizmo_2d.c +++ b/source/blender/editors/transform/transform_gizmo_2d.c @@ -604,8 +604,8 @@ static void gizmo2d_xform_draw_prepare(const bContext *C, wmGizmoGroup *gzgroup) UI_view2d_view_to_region_m4(&region->v2d, ggd->cage->matrix_space); /* Define the bounding box of the gizmo in the offset transform matrix. */ unit_m4(ggd->cage->matrix_offset); - ggd->cage->matrix_offset[0][0] = (ggd->max[0] - ggd->min[0]); - ggd->cage->matrix_offset[1][1] = (ggd->max[1] - ggd->min[1]); + ggd->cage->matrix_offset[0][0] = max_ff(0.001f,(ggd->max[0] - ggd->min[0])); + ggd->cage->matrix_offset[1][1] = max_ff(0.001f,(ggd->max[1] - ggd->min[1])); ScrArea *area = CTX_wm_area(C); ``` I guess that means this is technically "Confirmed in Debugger" ???! Can someone with a bit more familiarity with the transform gizmo take a look?

(the ggd->cage->matrix_offset is degenerate)

(the `ggd->cage->matrix_offset` is degenerate)
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Chris Blackbourn changed title from UV Editor Bug to UV Editor, Manipulator disappears if AABB of selection has zero area. 2023-01-20 02:12:56 +01:00
Chris Blackbourn self-assigned this 2023-01-25 00:51:40 +01:00

This issue was referenced by 6c8db7c22b

This issue was referenced by 6c8db7c22ba48c49df0de0ab655b79342d866281

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
4 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#103868
No description provided.