Edge Slide: use snap system to check sliding vertex visibility
commit2d50a41d77374cb37553f3a3a067845140e13aad
authorGermano Cavalcante <germano.costa@ig.com.br>
Wed, 6 Mar 2024 16:05:44 +0000 (6 13:05 -0300)
committerGermano Cavalcante <germano.costa@ig.com.br>
Wed, 6 Mar 2024 16:50:27 +0000 (6 13:50 -0300)
tree8f2169b68ea21ceb7805e0994252c24e8a2fa3df
parentd53d7dea71f884409fcde72a7ca1771c1e5685e8
Edge Slide: use snap system to check sliding vertex visibility

This is a different solution to #32068

The sliding edge occlusion test is done to prevent a non-visible
reference vertex from being used to calculate the factor direction.

This commit changes the behavior, but the difference is difficult to
notice.

The changes in behavior are:
- Other objects affect occlusion.
- Slide direction is used to test occlusion instead of edge.
- The reference point is now the point whose direction is visible and
  is closest to the mouse cursor.
source/blender/editors/transform/transform.cc
source/blender/editors/transform/transform.hh
source/blender/editors/transform/transform_convert_mesh.cc
source/blender/editors/transform/transform_mode_edge_slide.cc