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
path: root/source
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-08-02 09:49:11 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-08-02 09:49:11 +0400
commitf5cff8ad37edbb46f155e768a07ff6785938f1b9 (patch)
tree5abcbf7b91189969a84b5cef79bb434d90360327 /source
parent03c1585e3a6516c640bec08094178d8c0860a8b6 (diff)
BGE Animations: Fixing a crash when an fcurve actuator is found, but the object doesn't have animation data (adt).
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 0387e260915..18b461eb31d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -11752,7 +11752,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
aa->end = ia->end;
strcpy(aa->name, ia->name);
strcpy(aa->frameProp, ia->frameProp);
- aa->act = ob->adt->action;
+ if (ob->adt)
+ aa->act = ob->adt->action;
// Get rid of the old actuator
MEM_freeN(ia);