Nodes: Tooltips for value of dangling reroute node #120851

Merged
Jacques Lucke merged 23 commits from mod_moder/blender:dangling_reroute_tooltip into main 2024-04-25 10:48:16 +02:00

Dangling reroute nodes have no source of value. Due to that reason, such nodes are ignored by sockets.
And default values of sockets is used in such cases. To make it more explicit and add inspection about
actual value, this PR add tooltips with info about that.

This feature is bases on #120497 were added support of inspecting default values of sockets via tooltips
even if nodes haven't being evaluated.

Just to simplify current state of PR and be able to fix Cycles handling of dangling reroutes, currently
this tooltips are enabled only for geometry nodes.

image

Dangling reroute nodes have no source of value. Due to that reason, such nodes are ignored by sockets. And default values of sockets is used in such cases. To make it more explicit and add inspection about actual value, this PR add tooltips with info about that. This feature is bases on #120497 were added support of inspecting default values of sockets via tooltips even if nodes haven't being evaluated. Just to simplify current state of PR and be able to fix Cycles handling of dangling reroutes, currently this tooltips are enabled only for geometry nodes. ![image](/attachments/8eaa1b6c-74c1-44c0-8844-14987957371f)
Iliya Katushenock added 13 commits 2024-04-20 15:57:54 +02:00
Iliya Katushenock added this to the Nodes & Physics project 2024-04-20 15:58:01 +02:00
Author
Member

It seems i'll have to add dangling reroute handling to Cycles, see: #120855

It seems i'll have to add dangling reroute handling to Cycles, see: #120855
Iliya Katushenock added 2 commits 2024-04-22 19:50:27 +02:00
Iliya Katushenock requested review from Jacques Lucke 2024-04-22 20:19:36 +02:00
Iliya Katushenock added 3 commits 2024-04-23 12:32:17 +02:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
f31f629b1e
merge main
Jacques Lucke requested changes 2024-04-23 12:47:01 +02:00
Dismissed
@ -1735,0 +1816,4 @@
if (target_socket != nullptr) {
std::stringstream ss;
create_inspection_string_for_default_socket_value(*target_socket, ss);
BLI_assert(!ss.str().empty());
Member

I hit this assert when hovering over a reroute node that is not evaluated.

I hit this assert when hovering over a reroute node that is not evaluated.
mod_moder marked this conversation as resolved
Iliya Katushenock added 2 commits 2024-04-23 13:51:24 +02:00
Iliya Katushenock requested review from Jacques Lucke 2024-04-23 13:51:30 +02:00
Jacques Lucke reviewed 2024-04-23 14:49:53 +02:00
Jacques Lucke left a comment
Member

@blender-bot build

@blender-bot build
Jacques Lucke approved these changes 2024-04-23 14:50:00 +02:00
Iliya Katushenock reviewed 2024-04-24 15:57:36 +02:00
@ -1735,0 +1811,4 @@
if (target_socket == nullptr) {
if (!output_socket.directly_linked_sockets().is_empty()) {
return TIP_("Dangling reroute is ignored by all targets");
Author
Member

Hmmm/

@HooglyBoogly Does this function cases fell wrong for your option in context And stuff like error_count > 1 ? "s have" : " has" does not work at all for other languages?

Hmmm/ @HooglyBoogly Does this function cases fell wrong for your option in context `And stuff like error_count > 1 ? "s have" : " has" does not work at all for other languages`?
Member

The UI text here looks great. Would only change one thing:

In

Dangling reroute is ignored and default value of target socket is used

change "and" to a comma

The UI text here looks great. Would only change one thing: In >Dangling reroute is ignored and default value of target socket is used change "and" to a comma
mod_moder marked this conversation as resolved
Iliya Katushenock added 1 commit 2024-04-24 16:58:04 +02:00
Member

Need to merge main again

Need to merge main again
Iliya Katushenock added 2 commits 2024-04-24 22:34:31 +02:00
Jacques Lucke merged commit fa66b52d0a into main 2024-04-25 10:48:16 +02:00
Iliya Katushenock deleted branch dangling_reroute_tooltip 2024-04-25 13:03:17 +02:00
Sign in to join this conversation.
No reviewers
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 Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: blender/blender#120851
No description provided.