[Bf-blender-cvs] [c38655538bd] greasepencil-object: GPencil: UI - Replace Duplications with Duplicates
Antonio Vazquez
noreply at git.blender.org
Wed Feb 26 19:07:49 CET 2020
Commit: c38655538bd108d011361fc9a67a0fcd4917aef0
Author: Antonio Vazquez
Date: Wed Feb 26 19:07:04 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc38655538bd108d011361fc9a67a0fcd4917aef0
GPencil: UI - Replace Duplications with Duplicates
===================================================================
M release/scripts/startup/bl_ui/properties_data_modifier.py
M source/blender/makesrna/intern/rna_gpencil_modifier.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 1feb594cdca..2c97e19d0f6 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -2122,9 +2122,9 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel):
def GP_MULTIPLY(self, layout, ob, md):
col = layout.column()
- col.prop(md, "duplications")
+ col.prop(md, "duplicates")
subcol = col.column()
- subcol.enabled = md.duplications > 0
+ subcol.enabled = md.duplicates > 0
subcol.prop(md, "distance")
subcol.prop(md, "offset", slider=True)
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c
index 0bd012ab700..d27a1aff750 100644
--- a/source/blender/makesrna/intern/rna_gpencil_modifier.c
+++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c
@@ -1917,9 +1917,10 @@ static void rna_def_modifier_gpencilmultiply(BlenderRNA *brna)
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, "duplications", PROP_INT, PROP_NONE);
+ prop = RNA_def_property(srna, "duplicates", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "duplications");
RNA_def_property_range(prop, 0, 10);
- RNA_def_property_ui_text(prop, "Duplications", "How many copies of strokes be displayed");
+ RNA_def_property_ui_text(prop, "Duplicates", "How many copies of strokes be displayed");
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
prop = RNA_def_property(srna, "distance", PROP_FLOAT, PROP_NONE);
More information about the Bf-blender-cvs
mailing list