Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-05-14 18:28:31 +0300
committerAntonioya <blendergit@gmail.com>2019-05-14 18:28:42 +0300
commit70f3ff808ac591b4e9c7c71583ce1032024b9e4f (patch)
treea87d4f5ba5dd180d4a551524bc421c22e12c6b82 /source/blender/makesrna/intern/rna_material.c
parent0d2e708ea44941b79bbf412354d37a77afc8e486 (diff)
GPencil: Rename property Follow Drawing Path to Alignment
The old name was not clear and with new options the new name is more easy to understand.
Diffstat (limited to 'source/blender/makesrna/intern/rna_material.c')
-rw-r--r--source/blender/makesrna/intern/rna_material.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index a27ed00228e..4a449463d4d 100644
--- a/source/blender/makesrna/intern/rna_material.c
+++ b/source/blender/makesrna/intern/rna_material.c
@@ -440,10 +440,14 @@ static void rna_def_material_greasepencil(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL},
};
- static EnumPropertyItem follow_draw_items[] = {
+ static EnumPropertyItem alignment_draw_items[] = {
{GP_STYLE_FOLLOW_PATH, "PATH", 0, "Path", "Follow stroke drawing path and object rotation"},
{GP_STYLE_FOLLOW_OBJ, "OBJECT", 0, "Object", "Follow object rotation only"},
- {GP_STYLE_FOLLOW_NONE, "NONE", 0, "None", "Do not follow drawing path or object rotation"},
+ {GP_STYLE_FOLLOW_FIXED,
+ "FIXED",
+ 0,
+ "Fixed",
+ "Do not follow drawing path or object rotation and keeps aligned with viewport"},
{0, NULL, 0, NULL, NULL},
};
@@ -619,11 +623,11 @@ static void rna_def_material_greasepencil(BlenderRNA *brna)
RNA_def_property_update(prop, NC_GPENCIL | ND_SHADING, "rna_MaterialGpencil_update");
/* Mode to align Dots and Boxes to drawing path and object rotation */
- prop = RNA_def_property(srna, "use_follow_path", PROP_ENUM, PROP_NONE);
- RNA_def_property_enum_bitflag_sdna(prop, NULL, "follow_mode");
- RNA_def_property_enum_items(prop, follow_draw_items);
+ prop = RNA_def_property(srna, "alignment_mode", PROP_ENUM, PROP_NONE);
+ RNA_def_property_enum_bitflag_sdna(prop, NULL, "alignment_mode");
+ RNA_def_property_enum_items(prop, alignment_draw_items);
RNA_def_property_ui_text(
- prop, "Follow Path", "Rotate Dots and Boxes aligned to drawing path and object rotation");
+ prop, "Alignment", "Defines how align Dots and Boxes with drawing path and object rotation");
RNA_def_property_update(prop, NC_GPENCIL | ND_SHADING, "rna_MaterialGpencil_nopreview_update");
/* pass index for future compositing and editing tools */