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-28 00:16:41 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-28 00:16:41 +0400
commit4b1588e277d6a6e6bc7dc9553652d2ca4aad2d73 (patch)
tree39310f93a57a9d3cbac4be639723a5aed2eb6291 /source/blender/blenkernel/BKE_modifier.h
parent410512e2656007587cc1671c71c37cbc0b5bda4f (diff)
- update storage.c to use standard time codes (should fix issue
with MSVS 8) - broke mesh_create_shadedColors out of shadeDispList, used to build vertex colors for mesh in vpaint as well (also fixed bug where they were not initialized correctly for subsurfs) - added modifier_copyData and modifier_findByType functions - change editmode modifiers to only calculate if Realtime and Editmode bits are both set, makes more sense for copying modifiers - update object_copy to correctly copy modifiers - removed duplicate redefinition of ME_ attributes in python, this is a horrible idea, why was it done in the first place? - update armature auto vertex group code to check for subsurf in modifier stack - fixed flip_subdivision to work with move to modifier stack - added copymenu_modifiers, can copy all modifiers or just data from first modifier of a certain type (not sure how to deal with multiple modifiers of same type... not a big issue though I think)
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 e407c04159c..94e174f0e0e 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -38,6 +38,7 @@ struct ModifierData;
struct DagForest;
struct DagNode;
struct Object;
+struct ListBase;
typedef enum {
/* Should not be used, only for None modifier type */
@@ -91,6 +92,11 @@ typedef struct ModifierTypeInfo {
*/
void (*initData)(struct ModifierData *md);
+ /* Copy instance data for this modifier type. Should copy all user
+ * level settings to the target modifier.
+ */
+ void (*copyData)(struct ModifierData *md, struct ModifierData *target);
+
/* Free internal modifier data variables, this function should
* not free the _md_ variable itself.
*
@@ -171,7 +177,10 @@ ModifierTypeInfo *modifierType_get_info(ModifierType type);
struct ModifierData* modifier_new (int type);
void modifier_free (struct ModifierData *md);
+void modifier_copyData (struct ModifierData *md, struct ModifierData *target);
int modifier_dependsOnTime (struct ModifierData *md);
+struct ModifierData* modifiers_findByType (struct ListBase *lb, ModifierType type);
+
#endif