GPencil: Remove "angle_split" from Multiply modifier.
This commit is contained in:
parent
5035057281
commit
2e53b646f6
|
@ -685,7 +685,6 @@ typedef struct MultiplyGpencilModifierData {
|
|||
int flag;
|
||||
/** Custom index for passes. */
|
||||
int layer_pass;
|
||||
char _pad[4];
|
||||
|
||||
int flags;
|
||||
|
||||
|
@ -698,14 +697,10 @@ typedef struct MultiplyGpencilModifierData {
|
|||
float fading_thickness;
|
||||
float fading_opacity;
|
||||
|
||||
/* in rad not deg */
|
||||
float split_angle;
|
||||
|
||||
/* char _pad[4]; */
|
||||
} MultiplyGpencilModifierData;
|
||||
|
||||
typedef enum eMultiplyGpencil_Flag {
|
||||
GP_MULTIPLY_ENABLE_ANGLE_SPLITTING = (1 << 1),
|
||||
/* GP_MULTIPLY_ENABLE_ANGLE_SPLITTING = (1 << 1), Deprecated. */
|
||||
GP_MULTIPLY_ENABLE_FADING = (1 << 2),
|
||||
} eMultiplyGpencil_Flag;
|
||||
|
||||
|
|
|
@ -2109,22 +2109,11 @@ static void rna_def_modifier_gpencilmultiply(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "Inverse Pass", "Inverse filter");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "enable_angle_splitting", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flags", GP_MULTIPLY_ENABLE_ANGLE_SPLITTING);
|
||||
RNA_def_property_ui_text(prop, "Angle Splitting", "Enable angle splitting");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_fade", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flags", GP_MULTIPLY_ENABLE_FADING);
|
||||
RNA_def_property_ui_text(prop, "Fade", "Fade the stroke thickness for each generated stroke");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "split_angle", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_range(prop, 0, M_PI);
|
||||
RNA_def_property_ui_range(prop, 0, M_PI, 10, 2);
|
||||
RNA_def_property_ui_text(prop, "Angle", "Split angle for segments");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "duplicates", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "duplications");
|
||||
RNA_def_property_range(prop, 0, 999);
|
||||
|
|
Loading…
Reference in New Issue