Fix: active node not updated when using the add_reroute operator #116634

Closed
Andrew Stevenson wants to merge 1 commits from Strike_Digital/blender:reroute-active-fix into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

Currently, when using the add_reroute operator, only the selected nodes are updated, and not the active node. This results in the originally active node not being highlighted, but still acting as if it is active.

Fixing this allows for adding reroutes and then renaming them directly after with F2. Currently, this renames the originally active node, rather than the reroute.

Current Fixed

I'm not a c++ developer, so this may not be the optimal way to achieve this.

Currently, when using the `add_reroute` operator, only the selected nodes are updated, and not the active node. This results in the originally active node not being highlighted, but still acting as if it is active. Fixing this allows for adding reroutes and then renaming them directly after with F2. Currently, this renames the originally active node, rather than the reroute. <table> <tr> <td>Current</td> <td>Fixed</td> </tr> <tr> <td><video src="/attachments/79cecabc-108d-47f2-912f-f26ad81db680" title="2023-12-29 19-21-51.mp4" controls></video></td> <td><video src="/attachments/c622572d-928c-4a43-a1cd-70868cdf0e41" title="2023-12-29 19-16-48.mp4" controls></video></td> </tr> </table> I'm not a c++ developer, so this may not be the optimal way to achieve this.
Andrew Stevenson added 1 commit 2023-12-29 20:30:43 +01:00
7f77b8619f Fix: active node not updated when using add_reroute operator.
This allows for adding reroutes and then renaming them directly after with F2, currently they need to be set to active manually for this to work.

I'm not a c++ developer, so this may not be the optimal way to achieve this.
Iliya Katushenock added this to the Nodes & Physics project 2023-12-29 20:40:15 +01:00
Member

Hi, thanks for the PR. I doubt if that's a correct solution. It would be hard to determine the active reroute node when reroutes are added to multiple links in single shift + RMB cut. And it also involves some design discussion.
I proposed patch for this problem last year, you can see the discussion at: https://archive.blender.org/developer/D15313 (#99161)
Closing.
cc @HooglyBoogly

Hi, thanks for the PR. I doubt if that's a correct solution. It would be hard to determine the active reroute node when reroutes are added to multiple links in single `shift + RMB` cut. And it also involves some design discussion. I proposed patch for this problem last year, you can see the discussion at: https://archive.blender.org/developer/D15313 (#99161) Closing. cc @HooglyBoogly
Pratik Borhade closed this pull request 2023-12-30 06:39:40 +01:00

Pull request closed

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
2 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#116634
No description provided.