Page MenuHome

Fix T72121: Measurements are being drawn incorrectly if one end is off screen
ClosedPublic

Authored by Germano Cavalcante (mano-wii) on Dec 4 2019, 5:35 PM.

Details

Summary

The solution is to distribute the drawing for part to be done in 3d
(dashed lines, arc) and another part in 2d (text and caps).

Ref T72121

Diff Detail

Repository
rB Blender

Event Timeline

Clément Foucault (fclem) requested changes to this revision.Mar 23 2020, 7:39 PM

Way over complicated. Just find the intersection with camera near plane and clip if needed.
Only render extremities and dimensions if they are on screen and in front of near plane too.

Note this is only necessary in perspective.

This revision now requires changes to proceed.Mar 23 2020, 7:39 PM
  • Only draw segment ends if on screen
  • Merge branch 'blender-v2.83-release' into arcpatch-D6361
This revision is now accepted and ready to land.May 25 2020, 7:16 PM