Geometry Nodes in searching pulls nodes from other node add-ons #101259

Closed
opened 2022-09-21 20:16:46 +02:00 by kursad k · 19 comments
Member

System Information
Operating system: Windows 11

Blender Version
Broken: 3.4-6f15141f2731
Worked: 3.2, 3.3

Not bisected but I suspect bdb5754147

Short description of error

Searching for a node brings nodes from other node addons.

Exact steps for others to reproduce the error

blender_vh4ZUevmqh.mp4

**System Information** Operating system: Windows 11 **Blender Version** Broken: 3.4-6f15141f2731 Worked: 3.2, 3.3 Not bisected but I suspect bdb5754147 **Short description of error** Searching for a node brings nodes from other node addons. **Exact steps for others to reproduce the error** - Install Sverchok nightly: https://github.com/nortikin/sverchok#installation - Install Blender 3.4 nightly - Add an object - Add a geonode modifier - Search for "random" node (see the attached video for the reference) [blender_vh4ZUevmqh.mp4](https://archive.blender.org/developer/F13546474/blender_vh4ZUevmqh.mp4)
Author
Member

Added subscriber: @kursadk

Added subscriber: @kursadk

#101390 was marked as duplicate of this issue

#101390 was marked as duplicate of this issue
kursad k changed title from Geometry Nodes pulls nodes from other node add-ons to Geometry Nodes in searching pulls nodes from other node add-ons 2022-09-21 20:17:28 +02:00
Member

Added subscribers: @HooglyBoogly, @persun, @PratikPB2123

Added subscribers: @HooglyBoogly, @persun, @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

HI, thanks for the report. Looks like multiple add-ons has been affected by bdb5754147
@HooglyBoogly , could you take a look?
Another similar report: #101238 (LuxCore nodes are exposed in search menus of other node systems)

HI, thanks for the report. Looks like multiple add-ons has been affected by bdb5754147 @HooglyBoogly , could you take a look? Another similar report: #101238 (LuxCore nodes are exposed in search menus of other node systems)
Author
Member

According to the diffusion this fix (https://developer.blender.org/rB77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b) was in the September 22, 04:26:29 20dc839319 build, however my testing shows that this is still broken.

283.62MB

According to the diffusion this fix (https://developer.blender.org/rB77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b) was in the September 22, 04:26:29 20dc8393192f build, however my testing shows that this is still broken. 283.62MB

Added subscriber: @genesis2303

Added subscriber: @genesis2303
Hans Goudey self-assigned this 2022-09-27 15:29:00 +02:00
Member

I've found the issue with Sverchok nodes showing up in their search is the order of mixins in their node class definitions.
SverchokNode(SverchCustomTreeNode, bpy.types.Node) works, but SverchokNode(bpy.types.Node, SverchCustomTreeNode) doesn't.
I'm assuming bpy.types.Node defines some standard function that just returns true. For the latter order, the Sverchok poll is never found.

Blender didn't really call these poll functions before, now they are used for determining which nodes appear in the search as well.

The polls are incorrect when called from Python as well. A fix in Sverchok is as simple as switching the order in the node class definitions.

I've found the issue with Sverchok nodes showing up in their search is the order of mixins in their node class definitions. `SverchokNode(SverchCustomTreeNode, bpy.types.Node)` works, but `SverchokNode(bpy.types.Node, SverchCustomTreeNode)` doesn't. I'm assuming bpy.types.Node defines some standard function that just returns true. For the latter order, the Sverchok poll is never found. Blender didn't really call these poll functions before, now they are used for determining which nodes appear in the search as well. The polls are incorrect when called from Python as well. A fix in Sverchok is as simple as switching the order in the node class definitions.

Added subscriber: @randum

Added subscriber: @randum

Yes, it's known problem in Sverchok but we didn't prioritize it because custom nodes were not take into in build-in editors before. If custom nodes are allowed in build-in editors we of cause will fix the inheritance problem.

By the way do you know the source of this common mistake?)) It is from Blender templates.
image.png

Yes, it's known problem in Sverchok but we didn't prioritize it because custom nodes were not take into in build-in editors before. If custom nodes are allowed in build-in editors we of cause will fix the inheritance problem. By the way do you know the source of this common mistake?)) It is from Blender templates. ![image.png](https://archive.blender.org/developer/F13582831/image.png)
Member

For what it's worth, a simple find and replace SverchCustomTreeNode, bpy.types.Node -> bpy.types.Node, SverchCustomTreeNode solved the problem for me. I was going to verify it and submit a PR, but I wasn't sure how to make the zipped addon from Sverchok source. The package script ended up creating a 108 GB zip before I killed it :P

We should definitely fix the template!

For what it's worth, a simple find and replace `SverchCustomTreeNode, bpy.types.Node` -> `bpy.types.Node, SverchCustomTreeNode` solved the problem for me. I was going to verify it and submit a PR, but I wasn't sure how to make the zipped addon from Sverchok source. The package script ended up creating a 108 GB zip before I killed it :P We should definitely fix the template!

It would be nice to have a commit from one of the Blender developers ^_^

As far as I know, on GitHub, you have to fork repository (via Browser), clone it to local machine, commit changes, push them to the fork and after that it will possible to create PR from the fork to main repository. But probably there is another approach.

But if you does not have time I can take care of it, of cause.

It would be nice to have a commit from one of the Blender developers ^_^ As far as I know, on GitHub, you have to fork repository (via Browser), clone it to local machine, commit changes, push them to the fork and after that it will possible to create PR from the fork to main repository. But probably there is another approach. But if you does not have time I can take care of it, of cause.
Author
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Author
Member

@OmarEmaraDev Animation Nodes litters the GeoNodes search box results as well unfortunately.

@OmarEmaraDev Animation Nodes litters the GeoNodes search box results as well unfortunately.
Member

@kursadk Will take care of that later today.

@kursadk Will take care of that later today.
Author
Member

@OmarEmaraDev Thanks for the fix.

@OmarEmaraDev Thanks for the fix.
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

If this is happening with an addon, the node poll functions are most likely incorrect as mentioned above. Since there's nothing to be done internally, I'll close this report.

If this is happening with an addon, the node poll functions are most likely incorrect as mentioned above. Since there's nothing to be done internally, I'll close this report.
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
7 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#101259
No description provided.