Geometry Nodes: Gray out "New" button when curve object is active

Currently curve objects aren't supported by the node modifier, so the
new node group and modifier operator shouldn't be available.
This commit is contained in:
Hans Goudey 2021-01-08 15:04:38 -06:00
parent 3c1fcec652
commit 7fd19c20e0
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ def geometry_node_group_empty_new(context):
def geometry_modifier_poll(context) -> bool:
ob = context.object
# Test object support for geometry node modifier (No volume or hair object support yet)
if not ob or ob.type not in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'POINTCLOUD'}:
# Test object support for geometry node modifier (No volume, curve, or hair object support yet)
if not ob or ob.type not in {'MESH', 'POINTCLOUD'}:
return False
return True