Node Wrangler -> Swap node type gives error in shading if geometry node selected #100019

Closed
opened 2022-07-27 10:43:28 +02:00 by Austin Eberhart · 6 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96

Blender Version
Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: blender/blender@a2d59b2dac
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Node Wrangler (3, 40)
Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer

Short description of error
If the SHIFT+S shortcut is used in shading panel after a node is swapped in geometry nodes, it will give an error.

Python: Traceback (most recent call last):
  File "D:\Steam\steamapps\common\Blender\3.2\scripts\addons\node_wrangler.py", line 2229, in execute
    new_node = nodes.new(to_type)
RuntimeError: Error: Cannot add node of type GeometryNodeReplaceMaterial to node tree 'Shader Nodetree'
  Not a geometry node tree

Exact steps for others to reproduce the error
1.) Open Blender
2.) Create an object
3.) Create new geometry nodes tree for this object
4.) Add any type of node to geometry nodes [the bug does not seem to reproduce if quick swap is used on the input/output]
5.) Use Node wrangler SHIFT+S shortcut key to change node to any other node
6.) Go to shading tab and create new material
7.) Attempt to SHIFT+S and change the principled BSDF to any other node. It will give the error

Cycling the addon fixes the issue.

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96 **Blender Version** Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: `blender/blender@a2d59b2dac` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Node Wrangler (3, 40) Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer **Short description of error** If the SHIFT+S shortcut is used in shading panel after a node is swapped in geometry nodes, it will give an error. ``` Python: Traceback (most recent call last): File "D:\Steam\steamapps\common\Blender\3.2\scripts\addons\node_wrangler.py", line 2229, in execute new_node = nodes.new(to_type) RuntimeError: Error: Cannot add node of type GeometryNodeReplaceMaterial to node tree 'Shader Nodetree' Not a geometry node tree ``` **Exact steps for others to reproduce the error** 1.) Open Blender 2.) Create an object 3.) Create new geometry nodes tree for this object 4.) Add any type of node to geometry nodes [the bug does not seem to reproduce if quick swap is used on the input/output] 5.) Use Node wrangler SHIFT+S shortcut key to change node to any other node 6.) Go to shading tab and create new material 7.) Attempt to SHIFT+S and change the principled BSDF to any other node. It will give the error Cycling the addon fixes the issue.

Added subscriber: @austineberhart

Added subscriber: @austineberhart

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski

Same as #99749

Same as #99749
Member

Closed as duplicate of #99749

Closed as duplicate of #99749
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

thanks @MarcinTwarowski :)

thanks @MarcinTwarowski :)
Sign in to join this conversation.
No Milestone
No project
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.

Dependencies

No dependencies set.

Reference: blender/blender-addons#100019
No description provided.