Page MenuHome

Fix T98799: camera unselectable in camera view below a certain scale
AbandonedPublic

Authored by Philipp Oeser (lichtwerk) on Jun 13 2022, 12:32 PM.

Details

Summary

The camera frame (used for selection) was drawn outside the near
clipping plane in those cases.

This has been an issue before as seen in the following commits:

Remaining issue was that the code which ensure the frame isn't behind
the near clipping plane was not taking into account the camera could be
scaled (in Z).
A caller of BKE_camera_view_frame_ex (namely
OVERLAY_camera_cache_populate) applies scale (also on the depth) which
does not play well with the way BKE_camera_view_frame_ex did it.

Now take Z scale into account.

Diff Detail

Repository
rB Blender
Branch
T98799 (branched from master)
Build Status
Buildable 22504
Build 22504: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Jun 13 2022, 12:32 PM
Campbell Barton (campbellbarton) retitled this revision from Fix T98799: camera cannot be selected in camera view below a certain scale to Fix T98799: camera unselectable in camera view below a certain scale.Jun 28 2022, 7:52 AM