Correct error in recent merge
This commit is contained in:
@@ -131,8 +131,8 @@ static void eyedropper_exit(bContext *C, wmOperator *op)
|
||||
void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3])
|
||||
{
|
||||
/* we could use some clever */
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
ScrArea *sa = BKE_screen_find_area_xy(win->screen, SPACE_TYPE_ANY, mx, my);
|
||||
bScreen *screen = CTX_wm_screen(C);
|
||||
ScrArea *sa = BKE_screen_find_area_xy(screen, SPACE_TYPE_ANY, mx, my);
|
||||
const char *display_device = CTX_data_scene(C)->display_settings.display_device;
|
||||
struct ColorManagedDisplay *display = IMB_colormanagement_display_get_named(display_device);
|
||||
|
||||
|
||||
@@ -150,8 +150,8 @@ static void datadropper_exit(bContext *C, wmOperator *op)
|
||||
static void datadropper_id_sample_pt(bContext *C, DataDropper *ddr, int mx, int my, ID **r_id)
|
||||
{
|
||||
/* we could use some clever */
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
ScrArea *sa = BKE_screen_find_area_xy(win->screen, -1, mx, my);
|
||||
bScreen *screen = CTX_wm_screen(C);
|
||||
ScrArea *sa = BKE_screen_find_area_xy(screen, -1, mx, my);
|
||||
|
||||
ScrArea *area_prev = CTX_wm_area(C);
|
||||
ARegion *ar_prev = CTX_wm_region(C);
|
||||
|
||||
Reference in New Issue
Block a user