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
This commit is contained in:
Dalai Felinto
2013-02-13 23:09:12 +00:00
parent f6624aaacd
commit 42f9872363

View File

@@ -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;
}