diff options
author | Dominik Fill <dominikfill> | 2022-02-18 21:22:51 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-18 21:22:51 +0300 |
commit | d9d97db018d28f4c1ce7543ba275a9809d56294a (patch) | |
tree | 81a5af6e6a9d6ce12517ae4a9dd02690631a3905 /source/blender/blenkernel/intern/DerivedMesh.cc | |
parent | 07fbf3108b1eb111ddcc1f164f73b31520716147 (diff) |
Fix T87829, T95331: Issues when nodes too close together
This patch aims to fix the issues presented in T87829 and T95331,
namely precision issues while connecting two nodes when being too
close together in the node editor editors, in a few cases even
resulting in the complete inability to connect nodes.
Sockets are found by intersecting a padded rect around the cursor
with the nodes' sockets' location. That creates ambiguities, as it's
possible for the padded rect to intersect with the wrong node,
as the distance between two nodes is smaller than the rect is padded.
The fix in this patch is checking against an unpadded rectangle in
visible_node().
Differential Revision: https://developer.blender.org/D14122
Diffstat (limited to 'source/blender/blenkernel/intern/DerivedMesh.cc')
0 files changed, 0 insertions, 0 deletions