Reroute node draws the same way for "selected" and "active", cause confusion. #108028

Closed
opened 2023-05-18 00:17:44 +02:00 by Peter · 5 comments

System Information
Operating system: Windows 10 Pro, OS build 19045.2846
Graphics card: Nvidia RTX 3090

Blender Version
Broken: Today's daily build and every build of blender 3.6 I have (mostly the simulation nodes branch)
Worked: I can't find a version where it works any earlier than end of February, one of them crashed on startup and it's preventing earlier builds from starting.

Short description of error:

Reroute node draws the same way for "selected" and "active", they both appears to be "active", cause confusion on operations such as F2 renaming/labelling, as the user won't know which one is the one being operated on.

图片


Original description:

Renaming reroute nodes seem to be inconsistent when pasting them from existing unconnected reroute nodes.
I use empty reroutes to comment on graphs as an alternative to creating text blocks.

Exact steps for others to reproduce the error:

  1. Add a reroute node from the add menu
  2. Rename it with the f2 shortcut
  3. Copy and paste it
  4. Rename the second node
  5. Act slightly confused
**System Information** Operating system: Windows 10 Pro, OS build 19045.2846 Graphics card: Nvidia RTX 3090 **Blender Version** Broken: Today's daily build and every build of blender 3.6 I have (mostly the simulation nodes branch) Worked: I can't find a version where it works any earlier than end of February, one of them crashed on startup and it's preventing earlier builds from starting. **Short description of error:** Reroute node draws the same way for "selected" and "active", they both appears to be "active", cause confusion on operations such as `F2` renaming/labelling, as the user won't know which one is the one being operated on. ![图片](/attachments/5bb5a929-7a90-4678-85eb-2707d93a4cf3) --------- Original description: Renaming reroute nodes seem to be inconsistent when pasting them from existing unconnected reroute nodes. I use empty reroutes to comment on graphs as an alternative to creating text blocks. **Exact steps for others to reproduce the error:** 1. Add a reroute node from the add menu 2. Rename it with the f2 shortcut 3. Copy and paste it 4. Rename the second node 5. Act slightly confused
Peter added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-05-18 00:17:45 +02:00
Peter changed title from Renaming pasted reroute nodes will instead rename the node it was copied from2 to Renaming pasted reroute nodes will instead rename the node it was copied from 2023-05-18 00:22:08 +02:00

It's an addon bug, isn't it?

It's an addon bug, isn't it?
Member

@mod_moder I don't think this is an addon bug. It's rather a display bug.

The thing is F2 renames the active node, but box select won't change the active node, because box select could be selecting multiple nodes, and it can also extend selection. And the problem here I believe is that reroute nodes all drew the same way for "selected" and "active", so that's a confusion.

Expected behaviour is "selected" but "not active" nodes should have yellow outline other than white (selected color rather than active color).

图片

In source/blender/editors/space_node/node_draw.cc Line 3013: It only differentiate between selected or not. cc @HooglyBoogly @JacquesLucke

  /* Only draw input socket as they all are placed on the same position highlight
   * if node itself is selected, since we don't display the node body separately. */
  node_draw_sockets(region.v2d, C, ntree, node, block, false, node.flag & SELECT);
@mod_moder I don't think this is an addon bug. It's rather a display bug. The thing is `F2` renames the active node, but box select won't change the active node, because box select could be selecting multiple nodes, and it can also extend selection. And the problem here I believe is that reroute nodes all drew the same way for "selected" and "active", so that's a confusion. Expected behaviour is "selected" but "not active" nodes should have yellow outline other than white (selected color rather than active color). ![图片](/attachments/5bb5a929-7a90-4678-85eb-2707d93a4cf3) In `source/blender/editors/space_node/node_draw.cc` Line 3013: It only differentiate between selected or not. cc @HooglyBoogly @JacquesLucke ``` /* Only draw input socket as they all are placed on the same position highlight * if node itself is selected, since we don't display the node body separately. */ node_draw_sockets(region.v2d, C, ntree, node, block, false, node.flag & SELECT); ```
1.5 KiB
YimingWu added
Module
User Interface
Status
Confirmed
Type
Bug
and removed
Status
Needs Triage
Type
Report
labels 2023-05-18 07:37:27 +02:00
YimingWu changed title from Renaming pasted reroute nodes will instead rename the node it was copied from to Reroute node draws the same way for "selected" and "active", cause confusion. 2023-05-18 07:38:05 +02:00
Member

@ChengduLittleA What you're saying is true, but I think the original report was describing a different issue.

When pasing nodes it properly shows the newly pasted node as active but when using F2 to rename it it will rename the previously active node. For some reason the active node is not really updated? This can also be reproduced with nodes other than the reroute (see attached video).

@ChengduLittleA What you're saying is true, but I think the original report was describing a different issue. When pasing nodes it properly shows the newly pasted node as active but when using `F2` to rename it it will rename the previously active node. For some reason the active node is not really updated? This can also be reproduced with nodes other than the reroute (see attached video).
Member

Yeah I can confirm that. Pretty weird.

Edit: I reported this as a separate issue #108036.

Yeah I can confirm that. Pretty weird. Edit: I reported this as a separate issue #108036.
https://projects.blender.org/blender/blender/issues/108049
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-05-18 15:55:07 +02:00
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#108028
No description provided.