diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-26 16:04:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-26 16:06:49 +0300 |
commit | 6d22633a96a4ef18051ba6a937ed9c1d1e5d967c (patch) | |
tree | 47932a6db0f16f3bf6c59420b251b9c50c3ac82e /source/blender/makesrna | |
parent | 4f386999ea92ad0f22bffa151581cf5c615c660b (diff) |
Fix T66137: added normal map for painting has wrong color space until refresh
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index f0f22d21078..d7acbb40bb8 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -371,14 +371,15 @@ static Image *rna_Main_images_new(Main *bmain, int height, bool alpha, bool float_buffer, - bool stereo3d) + bool stereo3d, + bool is_data) { char safe_name[MAX_ID_NAME - 2]; rna_idname_validate(name, safe_name); float color[4] = {0.0, 0.0, 0.0, 1.0}; Image *image = BKE_image_add_generated( - bmain, width, height, safe_name, alpha ? 32 : 24, float_buffer, 0, color, stereo3d); + bmain, width, height, safe_name, alpha ? 32 : 24, float_buffer, 0, color, stereo3d, is_data); id_us_min(&image->id); return image; } @@ -1144,6 +1145,7 @@ void RNA_def_main_images(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_boolean( func, "float_buffer", 0, "Float Buffer", "Create an image with floating point color"); RNA_def_boolean(func, "stereo3d", 0, "Stereo 3D", "Create left and right views"); + RNA_def_boolean(func, "is_data", 0, "Is Data", "Create image with non-color data color space"); /* return type */ parm = RNA_def_pointer(func, "image", "Image", "", "New image data-block"); RNA_def_function_return(func, parm); |