Fix error message when there is no geometry selected #3

Merged
Hans Goudey merged 1 commits from dfelinto-patch-1 into node-group-tool-header-warnings 2023-08-22 15:07:17 +02:00
Showing only changes of commit 4bc90d913b - Show all commits

View File

@ -42,7 +42,7 @@ def draw_geometry_node_asset_warnings(layout, context, node_tree):
if not node_tree.is_tool: if not node_tree.is_tool:
layout.label(text="Asset is not marked as tool", icon='ERROR') layout.label(text="Asset is not marked as tool", icon='ERROR')
elif show_ineffective_tool_warning(context, node_tree): elif show_ineffective_tool_warning(context, node_tree):
layout.label(text="Asset options must support at least one type and mode", icon='ERROR') layout.label(text="Asset options must support at least one mode and geometry", icon='ERROR')
elif node_tree.asset_data.catalog_id == "00000000-0000-0000-0000-000000000000": elif node_tree.asset_data.catalog_id == "00000000-0000-0000-0000-000000000000":
layout.label(text="Add asset to catalog to show in menus", icon='ERROR') layout.label(text="Add asset to catalog to show in menus", icon='ERROR')