mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-27 03:13:12 +08:00
Rename essentials_category to main_category
The field is used for top-level tabs in the node library, not just the Essentials tab. Rename to main_category to support Partner Nodes, Basic, and other main categories. Amp-Thread-ID: https://ampcode.com/threads/T-019c2b69-81c1-71c3-8096-450a39e20910
This commit is contained in:
@@ -688,8 +688,8 @@ class PromptServer():
|
||||
|
||||
info['search_aliases'] = getattr(obj_class, 'SEARCH_ALIASES', [])
|
||||
|
||||
if hasattr(obj_class, 'ESSENTIALS_CATEGORY'):
|
||||
info['essentials_category'] = obj_class.ESSENTIALS_CATEGORY
|
||||
if hasattr(obj_class, 'MAIN_CATEGORY'):
|
||||
info['main_category'] = obj_class.MAIN_CATEGORY
|
||||
|
||||
return info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user