Nodes: improve socket picking tolerances #115010

Merged
Jacques Lucke merged 1 commits from JacquesLucke/blender:socket-picking into main 2023-11-25 15:23:41 +01:00
Member

The goal here is to make it easier to make node links. Previously, it was quite easy to accidentally start box selection or to trigger the link-drag-search when that was not intended.

Now, the tolerances are a bit easier to work with. Also, instead of trying to use the first socket that is close enough, it will find the closest socket instead. It feels much better in my testing already, but obviously the values can be tuned more with some testing.

Also we have to make sure to not accidentally make other things like resizing nodes harder.

The goal here is to make it easier to make node links. Previously, it was quite easy to accidentally start box selection or to trigger the link-drag-search when that was not intended. Now, the tolerances are a bit easier to work with. Also, instead of trying to use the first socket that is close enough, it will find the closest socket instead. It feels much better in my testing already, but obviously the values can be tuned more with some testing. Also we have to make sure to not accidentally make other things like resizing nodes harder.
Jacques Lucke added 1 commit 2023-11-16 19:44:35 +01:00
Jacques Lucke requested review from Lukas Tönne 2023-11-16 19:45:32 +01:00
Jacques Lucke requested review from Simon Thommes 2023-11-16 19:45:32 +01:00
Jacques Lucke requested review from Hans Goudey 2023-11-16 19:45:32 +01:00
Lukas Tönne approved these changes 2023-11-17 15:14:51 +01:00
Lukas Tönne left a comment
Member

Code looks good, and i didn't find any issues during testing.

Code looks good, and i didn't find any issues during testing.
Simon Thommes approved these changes 2023-11-24 16:28:22 +01:00
Simon Thommes left a comment
Member

Feels much better!

I don't see any issues with this. If anything the radius could be increased even more. But this is probably a good balance. Definitely much closer to the optimum than it was.

Feels much better! I don't see any issues with this. If anything the radius could be increased even more. But this is probably a good balance. Definitely much closer to the optimum than it was.
Jacques Lucke merged commit 74dd1e044b into main 2023-11-25 15:23:41 +01:00
Jacques Lucke deleted branch socket-picking 2023-11-25 15:23:43 +01:00
First-time contributor

The improvement is definitely welcome overall, but the radius that a socket can be grabbed from in the latest daily build seems a little too large, and makes it difficult to resize some nodes because it takes up most of the side.

The improvement is definitely welcome overall, but the radius that a socket can be grabbed from in the latest daily build seems a little too large, and makes it difficult to resize some nodes because it takes up most of the side.
Author
Member

@AgentA1cr best make a concrete bug report with a concrete example for a node that's hard to resize now.

@AgentA1cr best make a concrete bug report with a concrete example for a node that's hard to resize now.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115010
No description provided.