diff options
-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) { |