Regression: NODE_OT_add_search ignores NodeItems entries #103108

Open
opened 2022-12-10 18:34:57 +01:00 by Miguel Pozo · 11 comments
Member

Blender Version
Broken: 3.4
Worked: 3.3
Caused by bdb5754147

Short description of error
NodeItems entries are not taken into account when using the node Shift+A search functionality.

Exact steps for others to reproduce the error

  • Load and register the Python > Custom Nodes script template.
  • Use the Shift + A search functionality.
  • In 3.4 Node A and Node B are missing.
3.3 3.4
imagen.png imagen.png

Reproduction File
NodeItemsSearchRegression.blend

More Context
In Malt (https:*github.com/bnpr/Malt), we generate most nodes from a few node classes (https:*github.com/bnpr/Malt/tree/Development/BlenderMalt/MaltNodes/Nodes) and auto-generated GLSL reflection data.
We also use NodeItems to allow searching directly for node drop-down subcategories. (ie. you can search directly for Dot Product, instead of searching for Vector and then selecting the Dot Product option)
But none of this works in 3.4

**Blender Version** Broken: 3.4 Worked: 3.3 Caused by bdb5754147 **Short description of error** NodeItems entries are not taken into account when using the node `Shift+A` search functionality. **Exact steps for others to reproduce the error** - Load and register the `Python > Custom Nodes` script template. - Use the `Shift + A` search functionality. - In 3.4 `Node A` and `Node B` are missing. | 3.3 | 3.4 | | -- | -- | | ![imagen.png](https://archive.blender.org/developer/F14050371/imagen.png) | ![imagen.png](https://archive.blender.org/developer/F14050375/imagen.png) | **Reproduction File** [NodeItemsSearchRegression.blend](https://archive.blender.org/developer/F14050377/NodeItemsSearchRegression.blend) **More Context** In Malt (https:*github.com/bnpr/Malt), we generate most nodes from a few node classes (https:*github.com/bnpr/Malt/tree/Development/BlenderMalt/MaltNodes/Nodes) and auto-generated GLSL reflection data. We also use NodeItems to allow searching directly for node drop-down subcategories. (ie. you can search directly for `Dot Product`, instead of searching for `Vector` and then selecting the `Dot Product` option) But none of this works in 3.4
Author
Member

Added subscriber: @pragma37

Added subscriber: @pragma37

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @mod_moder

Added subscriber: @mod_moder

2022-09-18 20:10, hash: ecf3435362 -- 2022-09-24 17:57, hash: 4e7983e073

2022-09-18 20:10, hash: `ecf3435362` -- 2022-09-24 17:57, hash: `4e7983e073`

Potential caused by: bdb5754147

Potential caused by: bdb5754147
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Unfortunately I didn't consider this case in the commit mentioned here. The addons I knew about implemented their own search menus, so I didn't think about this case.
There isn't a simple way to fix this in 3.4. Longer term, I would like this sort of information to be a callback on the node type.

Unfortunately I didn't consider this case in the commit mentioned here. The addons I knew about implemented their own search menus, so I didn't think about this case. There isn't a simple way to fix this in 3.4. Longer term, I would like this sort of information to be a callback on the node type.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:18 +01:00

I don't know why this is marked as a known issue and high priority. If it's high priority it's a bug to be fixed.

I don't know why this is marked as a known issue and high priority. If it's high priority it's a bug to be fixed.
Brecht Van Lommel added
Type
Bug
and removed
Type
Known Issue
labels 2023-02-15 10:18:42 +01:00
Brecht Van Lommel added this to the 3.5 milestone 2023-02-15 10:26:17 +01:00

It was a functional regression. But now, looking at the history available to me, not sure who set the sub type.

It was a functional regression. But now, looking at the history available to me, not sure who set the sub type.
Jacques Lucke added
Priority
Normal
and removed
Priority
High
labels 2023-02-17 16:31:53 +01:00
Member

With cc925b9282 we can now add a Python node type callback for adding items to the search menu. However, that commit is only in 3.6, so the fix will have to be postponed until then unfortunately.

With cc925b92828991f42de9c17d04999630033bc23b we can now add a Python node type callback for adding items to the search menu. However, that commit is only in 3.6, so the fix will have to be postponed until then unfortunately.
Hans Goudey modified the milestone from 3.5 to 3.6 LTS 2023-03-07 21:52:30 +01: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
5 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#103108
No description provided.