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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user