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:
authorDaniel Dunbar <daniel@zuster.org>2005-07-20 03:04:34 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-20 03:04:34 +0400
commitd18600520e81989536c85ed2c43d18c68a53af18 (patch)
treef6c5c30d7b94ab281818f002e098d46d4e14c52a /source/blender/blenkernel/BKE_modifier.h
parent259a6fe8be07bc989744f0c4347741c284393349 (diff)
- added ModifierTypeInfo.updateDepgraph function, responsible for building
appropriate relations in dep graph (modifiers respond to scene changes correctly now) - update modifier buttons to trigger depgraph rebuild if needed
Diffstat (limited to 'source/blender/blenkernel/BKE_modifier.h')
-rw-r--r--source/blender/blenkernel/BKE_modifier.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h
index 651eb781fe7..fab705a3a8c 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -35,6 +35,8 @@
struct DerivedMesh;
struct ModifierData;
+struct DagForest;
+struct DagNode;
struct Object;
typedef enum {
@@ -79,6 +81,13 @@ typedef struct ModifierTypeInfo {
*/
int (*isDisabled)(struct ModifierData *md);
+ /* Add the appropriate relations to the DEP graph depending on the modifier
+ * data.
+ *
+ * This function is optional.
+ */
+ void (*updateDepgraph)(struct ModifierData *md, struct DagForest *forest, struct Object *ob, struct DagNode *obNode);
+
/* Only for deform types, should apply the deformation
* to the given vertex array. Object is guaranteed to be
* non-NULL.