diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 14:49:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 14:49:02 +0300 |
commit | ba8269c5f6d689defc05e46d6d981f7f0945b6a1 (patch) | |
tree | 2064d2ced0c57b5137327bede1de59aaa89be87c /source/blender/editors/object | |
parent | b33fd1cd1a767443bd5b8558c98ad62b61e016c4 (diff) |
fix for baking crash
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_bake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_bake.c b/source/blender/editors/object/object_bake.c index 4b02cd8e623..7aa9d557118 100644 --- a/source/blender/editors/object/object_bake.c +++ b/source/blender/editors/object/object_bake.c @@ -215,7 +215,8 @@ static void bake_update(void *bkv) if(bkr->sa && bkr->sa->spacetype==SPACE_IMAGE) { /* incase the user changed while baking */ SpaceImage *sima= bkr->sa->spacedata.first; - sima->image= RE_bake_shade_get_image(); + if(sima) + sima->image= RE_bake_shade_get_image(); } } |