Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex.c
| Context not available. | |||||
| /* See if are lighter, if so mix, else don't do anything. | /* See if are lighter, if so mix, else don't do anything. | ||||
| * if the paint col is darker then the original, then ignore */ | * if the paint col is darker then the original, then ignore */ | ||||
| if (rgb_to_grayscale_byte(cp1) > rgb_to_grayscale_byte(cp2)) { | if (rgb_to_luma_byte(cp1) > rgb_to_luma_byte(cp2)) { | ||||
| return col1; | return col1; | ||||
| } | } | ||||
| Context not available. | |||||
| /* See if were darker, if so mix, else don't do anything. | /* See if were darker, if so mix, else don't do anything. | ||||
| * if the paint col is brighter then the original, then ignore */ | * if the paint col is brighter then the original, then ignore */ | ||||
| if (rgb_to_grayscale_byte(cp1) < rgb_to_grayscale_byte(cp2)) { | if (rgb_to_luma_byte(cp1) < rgb_to_luma_byte(cp2)) { | ||||
| return col1; | return col1; | ||||
| } | } | ||||
| Context not available. | |||||