Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
| Context not available. | |||||
| cp_dst = (uchar *)&col_dst; | cp_dst = (uchar *)&col_dst; | ||||
| cp_mix = (uchar *)&col_mix; | cp_mix = (uchar *)&col_mix; | ||||
| /* See if are lighter, if so mix, else don't do anything. | /* See if we're lighter, if so mix, else don't do anything. | ||||
| * if the paint color is darker then the original, then ignore */ | * if the paint color is darker then the original, then ignore */ | ||||
| if (IMB_colormanagement_get_luminance_byte(cp_src) > | if (IMB_colormanagement_get_luminance_byte(cp_src) > | ||||
| IMB_colormanagement_get_luminance_byte(cp_dst)) { | IMB_colormanagement_get_luminance_byte(cp_dst)) { | ||||
| Context not available. | |||||
| cp_dst = (uchar *)&col_dst; | cp_dst = (uchar *)&col_dst; | ||||
| cp_mix = (uchar *)&col_mix; | cp_mix = (uchar *)&col_mix; | ||||
| /* See if were darker, if so mix, else don't do anything. | /* See if we're darker, if so mix, else don't do anything. | ||||
| * if the paint color is brighter then the original, then ignore */ | * if the paint color is brighter then the original, then ignore */ | ||||
| if (IMB_colormanagement_get_luminance_byte(cp_src) < | if (IMB_colormanagement_get_luminance_byte(cp_src) < | ||||
| IMB_colormanagement_get_luminance_byte(cp_dst)) { | IMB_colormanagement_get_luminance_byte(cp_dst)) { | ||||
| Context not available. | |||||