UI Code Quality: Use derived struct for color ramp buttons
The same changes as rB570044e9f412 and rB0ab21bf06ae0.
This commit is contained in:
@@ -268,7 +268,6 @@ struct uiBut {
|
||||
char *editstr;
|
||||
double *editval;
|
||||
float *editvec;
|
||||
void *editcoba;
|
||||
|
||||
uiButPushedStateFunc pushed_state_func;
|
||||
void *pushed_state_arg;
|
||||
@@ -335,6 +334,13 @@ typedef struct uiButHSVCube {
|
||||
eButGradientType gradient_type;
|
||||
} uiButHSVCube;
|
||||
|
||||
/** Derived struct for #UI_BTYPE_CURVEPROFILE. */
|
||||
typedef struct uiButColorBand {
|
||||
uiBut but;
|
||||
|
||||
struct ColorBand *edit_coba;
|
||||
} uiButColorBand;
|
||||
|
||||
/** Derived struct for #UI_BTYPE_CURVEPROFILE. */
|
||||
typedef struct uiButCurveProfile {
|
||||
uiBut but;
|
||||
|
||||
Reference in New Issue
Block a user