In this case `region->runtime->type` is null in background mode. This patch fixes it by just adding nullptr checks. Pull Request: https://projects.blender.org/blender/blender/pulls/141324
In this case `region->runtime->type` is null in background mode. This patch fixes it by just adding nullptr checks. Pull Request: https://projects.blender.org/blender/blender/pulls/141324