Fix T39233: Face assigned textures bake too bright

Shade input wasn't initialized properly for texture baking.
This commit is contained in:
Sergey Sharybin 2014-03-19 20:21:46 +06:00
parent 22ab652bb0
commit 7997e38917

@ -981,6 +981,7 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
int a, vdone = false, result = BAKE_RESULT_OK; int a, vdone = false, result = BAKE_RESULT_OK;
bool use_mask = false; bool use_mask = false;
bool use_displacement_buffer = false; bool use_displacement_buffer = false;
bool do_manage = BKE_scene_check_color_management_enabled(re->scene);
re->scene_color_manage = BKE_scene_check_color_management_enabled(re->scene); re->scene_color_manage = BKE_scene_check_color_management_enabled(re->scene);
@ -1040,6 +1041,7 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
} }
handles[a].ssamp.shi[0].combinedflag = ~(SCE_PASS_SPEC); handles[a].ssamp.shi[0].combinedflag = ~(SCE_PASS_SPEC);
handles[a].ssamp.shi[0].thread = a; handles[a].ssamp.shi[0].thread = a;
handles[a].ssamp.shi[0].do_manage = do_manage;
handles[a].ssamp.tot = 1; handles[a].ssamp.tot = 1;
handles[a].type = type; handles[a].type = type;