Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_eyedropper_color.c
| Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | if (node->custom1 == CMP_CRYPTOMATTE_SRC_RENDER) { | ||||
| return eyedropper_cryptomatte_sample_render_fl(node, prefix, fpos, r_col); | return eyedropper_cryptomatte_sample_render_fl(node, prefix, fpos, r_col); | ||||
| } | } | ||||
| if (node->custom1 == CMP_CRYPTOMATTE_SRC_IMAGE) { | if (node->custom1 == CMP_CRYPTOMATTE_SRC_IMAGE) { | ||||
| return eyedropper_cryptomatte_sample_image_fl(node, crypto, prefix, fpos, r_col); | return eyedropper_cryptomatte_sample_image_fl(node, crypto, prefix, fpos, r_col); | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| /** | |||||
| * \brief get the color from the screen. | |||||
| * | |||||
| * Special check for image or nodes where we MAY have HDR pixels which don't display. | |||||
| * | |||||
| * \note Exposed by 'interface_eyedropper_intern.h' for use with color band picking. | |||||
| */ | |||||
| void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3]) | void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3]) | ||||
| { | { | ||||
| /* we could use some clever */ | /* we could use some clever */ | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| const char *display_device = CTX_data_scene(C)->display_settings.display_device; | const char *display_device = CTX_data_scene(C)->display_settings.display_device; | ||||
| struct ColorManagedDisplay *display = IMB_colormanagement_display_get_named(display_device); | struct ColorManagedDisplay *display = IMB_colormanagement_display_get_named(display_device); | ||||
| ▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines | |||||