Fix T44028: Vertex Colors Baking error

Was wrong color management flag used for some bakers.
Actually goes back to 7997e38.
This commit is contained in:
Sergey Sharybin 2015-03-18 00:09:54 +05:00
parent 2ab4489f17
commit 63897304a9
Notes: blender-bot 2023-02-14 09:22:32 +01:00
Referenced by issue #44930, Loading an image with bpy.data.images.load(path) Freezes the add-on panel in the 3D tool shelf
Referenced by issue #44033, shadeinput.c and zbuf.c... out of bounds memory indexing?
Referenced by issue #44028, Vertex Colors Bakinng error
1 changed files with 6 additions and 2 deletions

View File

@ -984,8 +984,12 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
int a, vdone = false, result = BAKE_RESULT_OK;
bool use_mask = false;
bool use_displacement_buffer = false;
bool do_manage = BKE_scene_check_color_management_enabled(re->scene);
bool do_manage = false;
if (ELEM(type, RE_BAKE_ALL, RE_BAKE_TEXTURE)) {
do_manage = BKE_scene_check_color_management_enabled(re->scene);
}
re->scene_color_manage = BKE_scene_check_color_management_enabled(re->scene);
/* initialize render global */