Page MenuHome

Fix T95976: on cage GPU subdivision breaks X-ray selection
ClosedPublic

Authored by Kévin Dietrich (kevindietrich) on Feb 24 2022, 3:07 AM.

Details

Summary

When X-ray mode is active the selection is done using the mesh data to
select what is closest to the cursor. When GPU subdivision is active with
the "show on cage" modifier option, this fails as the mesh used for selection
is the unsubdivided one.

This creates a subdivision wrapper before running the selection routines to
ensure that subdivision is available on the CPU side as well.

Diff Detail

Repository
rB Blender

Event Timeline

Kévin Dietrich (kevindietrich) requested review of this revision.Feb 24 2022, 3:07 AM
Kévin Dietrich (kevindietrich) created this revision.
Campbell Barton (campbellbarton) added inline comments.
source/blender/editors/space_view3d/view3d_iterators.c
352

While obact works, use vc->obedit instead (which is also passed to editbmesh_get_eval_cage_from_orig).

This revision is now accepted and ready to land.Feb 24 2022, 5:43 AM