diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-08-02 09:49:11 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-08-02 09:49:11 +0400 |
commit | f5cff8ad37edbb46f155e768a07ff6785938f1b9 (patch) | |
tree | 5abcbf7b91189969a84b5cef79bb434d90360327 /source | |
parent | 03c1585e3a6516c640bec08094178d8c0860a8b6 (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.c | 3 |
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); |