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:
authorTon Roosendaal <ton@blender.org>2005-09-22 23:12:53 +0400
committerTon Roosendaal <ton@blender.org>2005-09-22 23:12:53 +0400
commit18e50e166e8d9497e00cf9cc2a29d3b31390cf84 (patch)
tree1b269f33d65ffa493699014bb3feb66c9a652667 /source/blender/blenloader/intern/readfile.c
parentf29f335ad53064c0ddf617c3709a2b593e1d45ec (diff)
Bugfix #3075
Wave Effect (and build etc) was being converted while the code later on was reading existing modifiers (and unlinking the converted data).
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 26adb6cf169..e7f9c00e8d2 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2319,6 +2319,10 @@ static void direct_link_object(FileData *fd, Object *ob)
ob->mat= newdataadr(fd, ob->mat);
test_pointer_array(fd, (void **)&ob->mat);
+
+ /* do it here, below old data gets converted */
+ direct_link_modifiers(fd, &ob->modifiers);
+
link_list(fd, &ob->effect);
paf= ob->effect.first;
while(paf) {
@@ -2427,8 +2431,6 @@ static void direct_link_object(FileData *fd, Object *ob)
act= act->next;
}
- direct_link_modifiers(fd, &ob->modifiers);
-
link_list(fd, &ob->hooks);
while (ob->hooks.first) {
ObHook *hook = ob->hooks.first;