diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-08 08:43:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-08 08:43:36 +0400 |
commit | cef952a750d86fe823bc0805032637f7a07394f5 (patch) | |
tree | f42ff1d6f5430505ae56174837a9b10540bbda1f | |
parent | 286d67b7145801fac588894b60a84ca0672ab2a9 (diff) |
fix for error in own recent commit, null check before assignment.
-rw-r--r-- | source/blender/render/intern/source/bake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/bake.c b/source/blender/render/intern/source/bake.c index f304ca517ad..cb6f9611bfd 100644 --- a/source/blender/render/intern/source/bake.c +++ b/source/blender/render/intern/source/bake.c @@ -1072,8 +1072,8 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up if (!ibuf) continue; + userdata = (BakeImBufuserData *)ibuf->userdata; if (userdata) { - userdata = (BakeImBufuserData *) ibuf->userdata; RE_bake_ibuf_filter(ibuf, userdata->mask_buffer, re->r.bake_filter); if (use_displacement_buffer) { |