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:
authorJoshua Leung <aligorith@gmail.com>2009-03-16 04:12:37 +0300
committerJoshua Leung <aligorith@gmail.com>2009-03-16 04:12:37 +0300
commit8522b08e05c31f9fc4b5fee25c64b884593dc180 (patch)
tree0dd3b66d607ca3e3355d3a9f7311d5088ad28ce3 /source/blender/blenloader
parent9ad4cd89c2cdee8d8086f7da9d9b35fdec12366a (diff)
F-Curve Modifiers: Generator Modifier Code
* Rewrote the Generator modifier to be more efficient and support more options * A few UI tweaks for this, but the UI for this is still not yet functional though.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
-rw-r--r--source/blender/blenloader/intern/writefile.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index e7d5fba23c8..c2fd08bd20f 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1725,7 +1725,7 @@ static void direct_link_fcurves(FileData *fd, ListBase *list)
{
FMod_Generator *data= (FMod_Generator *)fcm->data;
- data->poly_coefficients= newdataadr(fd, data->poly_coefficients);
+ data->coefficients= newdataadr(fd, data->coefficients);
}
break;
case FMODIFIER_TYPE_PYTHON:
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 45742b8f020..2adce78c222 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -805,9 +805,9 @@ static void write_fcurves(WriteData *wd, ListBase *fcurves)
{
FMod_Generator *data= (FMod_Generator *)fcm->data;
- /* write polynomial coefficients array */
- if (data->poly_coefficients)
- writedata(wd, DATA, sizeof(float)*(data->poly_order+1), data->poly_coefficients);
+ /* write coefficients array */
+ if (data->coefficients)
+ writedata(wd, DATA, sizeof(float)*(data->arraysize), data->coefficients);
}
break;
case FMODIFIER_TYPE_PYTHON: