diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-19 22:35:48 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-19 22:35:48 +0300 |
commit | 097e1ca1a1daa463e5fb62ffd5006d21ba2aba75 (patch) | |
tree | 35ceb891d02ae796a161f40cc123c06278c461ac /source/blender/blenkernel/BKE_object.h | |
parent | dc628e7c389e1a2127db8788dac3bfbc6a4d4164 (diff) |
Geometry Nodes: Add the concept of an active modifier
This commit adds functions to set and get the object's active
modifier, which is stored as a flag in the ModifierData struct,
similar to constraints. This will be used to set the context in
the node editor. There are no visible changes in this commit.
Diffstat (limited to 'source/blender/blenkernel/BKE_object.h')
-rw-r--r-- | source/blender/blenkernel/BKE_object.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h index 28c912a4c9a..a620d9af946 100644 --- a/source/blender/blenkernel/BKE_object.h +++ b/source/blender/blenkernel/BKE_object.h @@ -77,6 +77,10 @@ bool BKE_object_shaderfx_use_time(struct Object *ob, struct ShaderFxData *md); bool BKE_object_support_modifier_type_check(const struct Object *ob, int modifier_type); +/* Active modifier. */ +void BKE_object_modifier_set_active(struct Object *ob, struct ModifierData *md); +struct ModifierData *BKE_object_active_modifier(const struct Object *ob); + bool BKE_object_copy_modifier(struct Object *ob_dst, const struct Object *ob_src, struct ModifierData *md); |