Blender Git Loki

Git Commits -> Revision daa4d4d

Revision daa4d4d by Jeroen Bakker (master)
March 20, 2019, 13:00 (GMT)
Fix T62248: Infinite Hotspot Size Crop Node

When the area of the crop node is zero the hotspot margin becomes infinite.
This makes the gizmo by default think the translate mode hotspot is everywhere.

This fix will return a state if the INFINITY is detected so we can
return the hotspot drawing.

The cage2d gizmo is still not usable for sizes of 0 by 0 as now it won't
draw anything. the issues of the gizmo should be re-designed so we can
mitigate these limitations. But that is out of scope for this fix.

Reviewed By: campbellbarton

Maniphest Tasks: T62248

Differential Revision: https://developer.blender.org/D4516

Commit Details:

Full Hash: daa4d4dd25877c3352d26c6ac89a4cc2e05c10fa
Parent Commit: d3ee995
Lines Changed: +20, -6

1 Modified Path:

/source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c (+20, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021