Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-12-10 16:35:02 +0300
committerJacques Lucke <jacques@blender.org>2020-12-10 16:35:15 +0300
commitefb741b280f20cb189e23f2b1335358a95ab609c (patch)
treebb540cb0376269c2bd8c417911d53a1bfe79e458 /source/blender/blenkernel/BKE_modifier.h
parent2b9eb5eee58acb81d8ae7e64a5a95526623d64d7 (diff)
Geometry Nodes: rename modifyPointCloud to modifyGeometrySet
Since the initial merge of the geometry nodes project, the modifyPointCloud function already was already modifying a geometry set. The function wasn't renamed back then, because then the merge would have touched many more files. Ref T83357.
Diffstat (limited to 'source/blender/blenkernel/BKE_modifier.h')
-rw-r--r--source/blender/blenkernel/BKE_modifier.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h
index 73e33124b43..38b449cd92d 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -244,12 +244,20 @@ typedef struct ModifierTypeInfo {
struct Mesh *(*modifyMesh)(struct ModifierData *md,
const struct ModifierEvalContext *ctx,
struct Mesh *mesh);
+
struct Hair *(*modifyHair)(struct ModifierData *md,
const struct ModifierEvalContext *ctx,
struct Hair *hair);
- void (*modifyPointCloud)(struct ModifierData *md,
- const struct ModifierEvalContext *ctx,
- struct GeometrySet *geometry_set);
+
+ /**
+ * The modifier has to change the geometry set in-place. The geometry set can contain zero or
+ * more geometry components. This callback can be used by modifiers that don't work on any
+ * specific type of geometry (e.g. mesh).
+ */
+ void (*modifyGeometrySet)(struct ModifierData *md,
+ const struct ModifierEvalContext *ctx,
+ struct GeometrySet *geometry_set);
+
struct Volume *(*modifyVolume)(struct ModifierData *md,
const struct ModifierEvalContext *ctx,
struct Volume *volume);