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
This commit is contained in:
Philipp Oeser 2021-05-25 12:02:57 +02:00
parent 03c0fa1cdb
commit 09e77f904d
Notes: blender-bot 2023-02-14 02:43:21 +01:00
Referenced by issue #88534, Unable to add a Geometry Node Tree on an Empty Volume object
1 changed files with 2 additions and 2 deletions

View File

@ -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