From 42f987236363b443a523e4df929b8a05a9cbb27b Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 13 Feb 2013 23:09:12 +0000 Subject: 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 --- source/blender/blenloader/intern/readfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenloader') 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; } -- cgit v1.2.3