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-26 06:44:59 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-26 06:44:59 +0400
commit951a4934b08ab2621a627b1adb74cdf518c53a19 (patch)
tree38358088b18305fe471d6833ba52cd27e050b686 /source/blender/makesdna
parentee8e41c65a5bc2f89ad3402005b3767d33e52672 (diff)
- added wave modifier & removed old wave effect
- added decimate modifier & removed old decimate interface (currently lacks warning about destroying data, and there needs to be a way for modifiers to return errors back to the interface) - allow applyModifier to return NULL to indicate error - unfortunately new decimate modifier means it does not know exact number of faces in mesh (other modifiers may come before) and so instead interface uses a percentage. if people need exact face count slider then I will have to think of some hack to fit this in. note that it does display the output face count so its possible to tweak the pct to get what you want regardless. - removed python Wave object If you are bored now how much easier it is to implement something like decimate as a modifier. Very few changes to interface, very few entry points.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_effect_types.h1
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h3
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h20
3 files changed, 20 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_effect_types.h b/source/blender/makesdna/DNA_effect_types.h
index dc3118b7f73..299756edfe1 100644
--- a/source/blender/makesdna/DNA_effect_types.h
+++ b/source/blender/makesdna/DNA_effect_types.h
@@ -51,7 +51,6 @@
/* eff->flag */
#define EFF_SELECT 1
-#define EFF_CYCLIC 2
/* paf->stype */
#define PAF_NORMAL 0
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index 1b183c3cb39..f6f16b94f3a 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -80,9 +80,6 @@ typedef struct Mesh {
struct MSticky *msticky;
struct Mesh *texcomesh;
- /* hacky place to store temporary decimated mesh */
- struct DispListMesh *decimated;
-
struct OcInfo *oc; /* not written in file */
void *sumohandle;
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index c4c5227fa73..66732fe0dc4 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -12,6 +12,8 @@ typedef enum ModifierType {
eModifierType_Curve,
eModifierType_Build,
eModifierType_Mirror,
+ eModifierType_Decimate,
+ eModifierType_Wave,
NUM_MODIFIER_TYPES
} ModifierType;
@@ -71,4 +73,22 @@ typedef struct MirrorModifierData {
float tolerance;
} MirrorModifierData;
+typedef struct DecimateModifierData {
+ ModifierData modifier;
+
+ float percent;
+ int faceCount;
+} DecimateModifierData;
+
+typedef struct WaveModifierData {
+ ModifierData modifier;
+
+ short flag, pad;
+
+ float startx, starty, height, width;
+ float narrow, speed, damp;
+
+ float timeoffs, lifetime;
+} WaveModifierData;
+
#endif