diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2013-02-14 03:09:12 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2013-02-14 03:09:12 +0400 |
commit | 42f987236363b443a523e4df929b8a05a9cbb27b (patch) | |
tree | 06486fdff7b8c90eac08903c7b76d34413f711ea /source | |
parent | f6624aaacd3a8d3c5e86fc6bc09a1d14f7128012 (diff) |
bugfix: [#34220] Blenderplayer no longer working after r54395 commit [segfault due to world not valid]
patch by Sergey Sharybin
note, I still find strange that world was valid and now it is not, but at least we no longer segfaults
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6fba30aa060..94dfb0cf399 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8664,7 +8664,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) if (scene->world) { World *world = blo_do_versions_newlibadr(fd, scene->id.lib, scene->world); - if (is_zero_v3(&world->horr)) { + if (world && is_zero_v3(&world->horr)) { if ((world->skytype & WO_SKYBLEND) == 0 || is_zero_v3(&world->zenr)) { set_premul = true; } |