Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Schittek <leon.schittek@gmx.net>2022-08-21 11:12:50 +0300
committerLeon Schittek <leon.schittek@gmx.net>2022-08-21 11:12:50 +0300
commita0c28a805483afb9f34199789d19c51d9811ff84 (patch)
treed373755ddd879dfb8b35f1ca96e050df87c3507b /source/blender/blenfont/intern
parentc9a996790307efba7a0435e7f80b35b636d8e322 (diff)
Fix T100430: Restore larger node socket snap hitbox
Restore old hitbox for connecting links to sockets. Commit rBd9d97db018d2 improved the node socket snapping when nodes are close together by decreasing the tolerance around the cursor when checking for nodes in front, that might occlude the socket. In doing so it also reduced the hitbox of the node socket itself that extended outside of the node. This commit restores the old node socket hitbox while keeping the improved behavior when nodes are close together with the following changes: 1) When looking for the socket under the cursor, iterate through the nodes front to back, which prioritizes node sockets in the foreground. 2) Instead of checking for another node underneath the cursor it checks if the socket is actually occluded by another node. The way the occlusion test for sockets is tweaked you can now connect to sockets that are only partially occluded, which is a bit more forgiving than previously. Reviewed By: Hans Goudey Differential Revision: http://developer.blender.org/D15731
Diffstat (limited to 'source/blender/blenfont/intern')
0 files changed, 0 insertions, 0 deletions