It doesn't seem the most ideal as the
sel_ctx->objects
array doesn't necessarily have to be all!DRW_object_is_in_edit_mode(ob)
objects, but it should work fine now.
Checking if an object…
The selection engine should have matrices and depths matching the edit overlay. But I noticed that get_homogenous_z_offset is only being added to the selection engine in this patch. Does this…
My cleanup got merged before this PR so I rebased this branch to avoid merge conflicts.
The first commit is also included in #105498, so I will refactor either this PR or that one, depending on which gets merged first.
@mano-wii I've implemented your feedback, and as a result the code is much simpler, and works better too 🙂
The history became so messy I decided to reset and redo only the necessary changes. You can find the old commits here: https://projects.blender.org/bonj/blender/src/branch/retopology-select-old.
Thanks! I'll try to make it use the depsgraph iterator so it can support non-mesh solid objects too.