Page MenuHome

Fix snapping not done to final geometry from deform modifiers
Needs ReviewPublic

Authored by Germano Cavalcante (mano-wii) on Apr 25 2022, 8:02 PM.

Details

Summary

Except for EditMesh transform (which is SNAP_GEOM_EDIT), the snapping
in Cursor transform and in Tools is done to the final geometry
(SNAP_GEOM_FINAL).

However, for deform modifiers, snapping is not done to either the final
geometry or the cage. It is always done for the undeformed BMesh.

This happens because in these cases the coordinates that should be used
are in Mesh->runtime.edit_data->vertexCos.

This patch proposes to use coordinates in vertexCos when available.

BeforeAfter
NOTE: Not implemented, but for efficiency it might be better to create more specific callbacks for BVHTree functions.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 21802
Build 21802: arc lint + arc unit