Node group assets in add menu do not work with quick favorites #107383

Open
opened 2023-04-26 19:57:34 +02:00 by Sun Kim · 5 comments
Contributor

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-25 23:13, hash: 91020ccde15a
Worked: n/a

Node groups assets in the add menu was introduced in 3.4.

Short description of error
Right click on node group assets in the add menu brings up Add to Quick Favorites operator but they don't work with quick favorites.

If you register a submenu it just shows an empty box in quick favorites. If it's a node group asset, it does not add the asset.

Also all of the group assets and menus try to use the same quick favorite slot.

Exact steps for others to reproduce the error

  • In Geometry Nodes editor's add menu, right click on Hair menu or the assets under it
  • Add to Quick Favorites
  • Bring up Quick Favorites, and try to use the item just registered
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.61 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-25 23:13, hash: `91020ccde15a` Worked: n/a Node groups assets in the add menu was introduced in 3.4. **Short description of error** Right click on node group assets in the add menu brings up `Add to Quick Favorites` operator but they don't work with quick favorites. If you register a submenu it just shows an empty box in quick favorites. If it's a node group asset, it does not add the asset. Also all of the group assets and menus try to use the same quick favorite slot. **Exact steps for others to reproduce the error** - In Geometry Nodes editor's add menu, right click on Hair menu or the assets under it - Add to Quick Favorites - Bring up Quick Favorites, and try to use the item just registered
Sun Kim added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-26 19:57:35 +02:00
Richard Antalik added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-04-27 02:10:09 +02:00
Member

Will check on this.

Will check on this.
Philipp Oeser self-assigned this 2023-05-03 10:50:24 +02:00
Member

I'd simply consider this unsupported for now. It's not a code error that causes this, additional changes are needed to introduce support for such operators in the quick favorites.

If we decide to store some asset reference in the quick favorites storage, better to use AssetWeakReference over naked paths, it's designed for such use-cases.

I'd simply consider this unsupported for now. It's not a code error that causes this, additional changes are needed to introduce support for such operators in the quick favorites. If we decide to store some asset reference in the quick favorites storage, better to use `AssetWeakReference` over naked paths, it's designed for such use-cases.
Author
Contributor

75d788f2d3 solved half of this issue. Adding individual assets to quick favorites works now.

75d788f2d3 solved half of this issue. Adding individual assets to quick favorites works now.
Member

Stepping down since I currently do not plan on actually working on this

Stepping down since I currently do not plan on actually working on this
Philipp Oeser removed their assignment 2024-03-27 14:18:58 +01:00
Member

What exactly is there that is not working still? I guess adding the submenus to quick favorites? The way we build those sub-menus dynamically from catalogs seems incompatible with the way quick favorites work. We build the menus by storing the catalog-path in the layout context, which the menu's draw callback queries to filter the items/sub-menus. I don't think we can pass this layout context to the quick favorites storage.

We could get this to work by supporting ID-properties for invoking menus, similar to how operator properties work. These would then have to be stored alongside the menu-type to be invoked, again like we do it for operators. I don't think this is too difficult, but will require some work still. I think meanwhile we should consider this a known limitation.

What exactly is there that is not working still? I guess adding the submenus to quick favorites? The way we build those sub-menus dynamically from catalogs seems incompatible with the way quick favorites work. We build the menus by storing the catalog-path in the layout context, which the menu's draw callback queries to filter the items/sub-menus. I don't think we can pass this layout context to the quick favorites storage. We could get this to work by supporting ID-properties for invoking menus, similar to how operator properties work. These would then have to be stored alongside the menu-type to be invoked, again like we do it for operators. I don't think this is too difficult, but will require some work still. I think meanwhile we should consider this a known limitation.
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
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#107383
No description provided.