forked from bartvdbraak/blender
Fix #32891: Bake to Texture didn't use color management flag properly
This commit is contained in:
parent
66295d709c
commit
51fe26b78d
@ -59,6 +59,7 @@
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_node.h"
|
||||
#include "BKE_texture.h"
|
||||
#include "BKE_scene.h"
|
||||
|
||||
#include "IMB_imbuf_types.h"
|
||||
#include "IMB_imbuf.h"
|
||||
@ -2653,6 +2654,8 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
|
||||
Image *ima;
|
||||
int a, vdone = FALSE, use_mask = FALSE, result = BAKE_RESULT_OK;
|
||||
|
||||
re->scene_color_manage = BKE_scene_check_color_management_enabled(re->scene);
|
||||
|
||||
/* initialize render global */
|
||||
R= *re;
|
||||
R.bakebuf= NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user