Node Wrangler : Align Nodes operator disregards selection when used on frames #99904
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#99904
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.10.0-16-amd64-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce GTX 1660/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.129.06
Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash:
blender/blender@e05e1e3691
Worked: I don't remember it ever working (been using Blender since 2.7x).
Short description of error
if a frame node is selected, the Align Nodes button moves all the nodes in the tree, including those that aren't selected.
Exact steps for others to reproduce the error
From the startup file:
Note : This other issue probably needs to be solved first in order to fix this one
Added subscriber: @ChameleonScales
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Node Wrangler : Align Nodes is broken when used on framesto Node Wrangler : Align Nodes operator disregards selection when used on framesWhat your describing here isn't a bug with frames, but moreso just weird unintuitive behavior from the operator itself.
Looking at the code for the NWAlignNodes operator, it ignores frames during its execution:
So selecting a frame like you described results in an empty selection. The choice I personally find weird is that if no nodes are selected, it uses all nodes as a selection:
That's why selecting only a frame moves nodes you haven't selected, from the operator's perspective, nothing has been selected so it simply aligns all the nodes in the nodetree.
At least it tries to, a separate but more general bug is happening here where nodes don't get properly aligned when they don't share the same frame, hence why the final result looks random instead of being aligned as one line.
Addressing this issue would be separated into two parts:
1.) Fixing the general bug of the operator not calculating positions properly when multiple frames are involved. Though this is a more secondary concern, as this isn't related to the selection being ignored, this just fixes the nodes being seemingly placed at random when framed nodes are aligned.
2.) Remove the part where the operator aligns all nodes when none are selected. This is the more immediate concern in this issue. It doesn't seem to be intuitive behavior as no nodes being aligned is probably more expected when no nodes have been selected.
Secondly, if a user wanted to align all nodes, they could easily select all nodes with the 'A' hotkey before calling this operator, so no actual functionality is being lost if the operator just ends execution early when no nodes have been selected.