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 08:14:21 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-20 08:14:21 +0400
commit259c7b6cad39720dd98044e90238f130716485c7 (patch)
tree72f4cb7fd4ceae3250c607ba594254ce52a6fecb /source/blender/blenkernel/BKE_modifier.h
parentca1873df56db3a28fd650b132bdf74b992d0232c (diff)
- added modifier_dependsOnTime to check if modifier needs updating
based on time change. would be nice if dep graph could handle this. - made dep check if modifiers need update on time change - fix render crash (access null) - added new Build Effect modifier type. compared to old one works as a full member of modifier system, means can apply subsurf, etc on it, reorder, what have you. and it is all nice and self contained. - removed old Build effect, old files convert to new style on load - couldn't help myself, added a randomize feature to build effect - removed Python BuildEffect support
Diffstat (limited to 'source/blender/blenkernel/BKE_modifier.h')
-rw-r--r--source/blender/blenkernel/BKE_modifier.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h
index fab705a3a8c..94c847d50d8 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -1,6 +1,6 @@
/**
*
- * $$
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -88,6 +88,12 @@ typedef struct ModifierTypeInfo {
*/
void (*updateDepgraph)(struct ModifierData *md, struct DagForest *forest, struct Object *ob, struct DagNode *obNode);
+ /* Should return true if the modifier needs to be recalculated on time changes.
+ *
+ * This function is optional (assumes false if not present).
+ */
+ int (*dependsOnTime)(struct ModifierData *md);
+
/* Only for deform types, should apply the deformation
* to the given vertex array. Object is guaranteed to be
* non-NULL.
@@ -121,5 +127,7 @@ typedef struct ModifierTypeInfo {
ModifierTypeInfo *modifierType_get_info(ModifierType type);
+int modifier_dependsOnTime(struct ModifierData *md);
+
#endif