Fix #120302: Crash Using Eyedropper on Color Ramp #120323

Closed
Harley Acheson wants to merge 1 commits from Harley/blender:Fix120302 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 0 additions and 11 deletions

View File

@ -38,11 +38,6 @@
#include "eyedropper_intern.hh"
struct Colorband_RNAUpdateCb {
PointerRNA ptr;
PropertyRNA *prop;
};
struct EyedropperColorband {
int event_xy_last[2];
/* Alpha is currently fixed at 1.0, may support in future. */
@ -86,12 +81,6 @@ static bool eyedropper_colorband_init(bContext *C, wmOperator *op)
/* When invoked from a button it's in custom_data field. */
band = (ColorBand *)but->custom_data;
}
if (band) {
rna_update_ptr = ((Colorband_RNAUpdateCb *)but->func_argN)->ptr;
rna_update_prop = ((Colorband_RNAUpdateCb *)but->func_argN)->prop;
is_undo = UI_but_flag_is_set(but, UI_BUT_UNDO);
}
}
if (!band) {