Skip to content

Commit

Permalink
Fix T88534: Unable to add a Geometry Node Tree on Volume object
Browse files Browse the repository at this point in the history
Volumes are supported, poll corrected.

Maniphest Tasks: T88534

Differential Revision: https://developer.blender.org/D11378
  • Loading branch information
lichtwerk committed May 26, 2021
1 parent 03c0fa1 commit 09e77f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/scripts/startup/bl_operators/geometry_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09e77f9

Please sign in to comment.