diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-05-25 13:02:57 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-05-26 11:28:16 +0300 |
commit | 09e77f904d207e1f4b9b02d1282f21a423d9dc00 (patch) | |
tree | 445d11e6d7d5857a7f3abde4cafeb77853f1012d /release/scripts/startup/bl_operators | |
parent | 03c0fa1cdb38695629c76fe6b14f733702b7061a (diff) |
Fix T88534: Unable to add a Geometry Node Tree on Volume object
Volumes are supported, poll corrected.
Maniphest Tasks: T88534
Differential Revision: https://developer.blender.org/D11378
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 0c7a2a01b7a..71ef89a066b 100644 --- a/release/scripts/startup/bl_operators/geometry_nodes.py +++ b/release/scripts/startup/bl_operators/geometry_nodes.py @@ -42,8 +42,8 @@ def geometry_node_group_empty_new(): def geometry_modifier_poll(context): ob = context.object - # 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'}: + # Test object support for geometry node modifier (No curve, or hair object support yet) + if not ob or ob.type not in {'MESH', 'POINTCLOUD', 'VOLUME'}: return False return True |