diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-09 00:04:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-09 00:04:38 +0300 |
commit | 7fd19c20e01ce4c4d5fe4c4c5f534724cde8bebc (patch) | |
tree | 6c600b76dd6f4972468fa342636c5901fcc941a0 /release/scripts/startup/bl_operators | |
parent | 3c1fcec6522e25525cbf8747c70cd79db508f003 (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/geometry_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/geometry_nodes.py b/release/scripts/startup/bl_operators/geometry_nodes.py index 03cd14a3df7..d3f984269f8 100644 --- a/release/scripts/startup/bl_operators/geometry_nodes.py +++ b/release/scripts/startup/bl_operators/geometry_nodes.py @@ -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 |