From 368647bd25d6bb0b32f5e439838c06e0e46ac8da Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 10 Mar 2021 11:53:17 +0100 Subject: Geometry Nodes: move geometry component type enum to C This allows us to use it in rna for the spreadsheet editor. --- source/blender/blenkernel/BKE_geometry_set.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/blenkernel/BKE_geometry_set.h') diff --git a/source/blender/blenkernel/BKE_geometry_set.h b/source/blender/blenkernel/BKE_geometry_set.h index ac42674654f..08b4a25d946 100644 --- a/source/blender/blenkernel/BKE_geometry_set.h +++ b/source/blender/blenkernel/BKE_geometry_set.h @@ -28,6 +28,16 @@ struct Collection; struct GeometrySet; struct Object; +/* Each geometry component has a specific type. The type determines what kind of data the component + * stores. Functions modifying a geometry will usually just modify a subset of the component types. + */ +typedef enum GeometryComponentType { + GEO_COMPONENT_TYPE_MESH = 0, + GEO_COMPONENT_TYPE_POINT_CLOUD = 1, + GEO_COMPONENT_TYPE_INSTANCES = 2, + GEO_COMPONENT_TYPE_VOLUME = 3, +} GeometryComponentType; + void BKE_geometry_set_free(struct GeometrySet *geometry_set); bool BKE_geometry_set_has_instances(const struct GeometrySet *geometry_set); -- cgit v1.2.3