diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-08-30 10:32:16 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-08-30 10:37:26 +0300 |
commit | a65676e6e9b03caa5a7badb963699bab0563ac9a (patch) | |
tree | 297b6a1aeb4db54e5d90cc4471420e56a66fd15f /source/blender/editors/gpencil | |
parent | e7f1c73a4e82ee9323f6a520bb923bc474bc738b (diff) |
GPencil: Rename in Outline operator `mode` with `material_mode`
The old name `mode` was confusing because there was also a `view_mode`.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index da63bf9af9b..c4aa5218360 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -3990,7 +3990,7 @@ static int gpencil_stroke_outline_exec(bContext *C, wmOperator *op) const int thickness = RNA_int_get(op->ptr, "thickness"); const int view_mode = RNA_enum_get(op->ptr, "view_mode"); - const int mode = RNA_enum_get(op->ptr, "mode"); + const int material_mode = RNA_enum_get(op->ptr, "material_mode"); const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd); /* sanity checks */ @@ -4051,7 +4051,7 @@ static int gpencil_stroke_outline_exec(bContext *C, wmOperator *op) } /* Create a new material. */ int mat_idx = 0; - if (mode == GP_STROKE_USE_NEW_MATERIAL) { + if (material_mode == GP_STROKE_USE_NEW_MATERIAL) { Material *ma = BKE_gpencil_object_material_new(bmain, ob, "Material", NULL); MaterialGPencilStyle *gp_style = ma->gp_style; @@ -4108,7 +4108,7 @@ static int gpencil_stroke_outline_exec(bContext *C, wmOperator *op) rv3d, gpd, gpl, gps_duplicate, subdivisions, diff_mat); gps_perimeter->flag &= ~GP_STROKE_SELECT; /* Assign material. */ - switch (mode) { + switch (material_mode) { case GP_STROKE_USE_ACTIVE_MATERIAL: { if (ob->actcol - 1 < 0) { gps_perimeter->mat_nr = 0; @@ -4217,7 +4217,7 @@ void GPENCIL_OT_stroke_outline(wmOperatorType *ot) /* properties */ ot->prop = RNA_def_enum(ot->srna, "view_mode", view_mode, GP_PERIMETER_VIEW, "View", ""); RNA_def_enum( - ot->srna, "mode", material_mode, GP_STROKE_USE_ACTIVE_MATERIAL, "Material Mode", ""); + ot->srna, "material_mode", material_mode, GP_STROKE_USE_ACTIVE_MATERIAL, "Material Mode", ""); RNA_def_int(ot->srna, "thickness", |