diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-10-26 03:24:59 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-10-26 03:24:59 +0400 |
commit | 510c69368b7382aa55f3fae0dac9ee6aaadee7e5 (patch) | |
tree | 19a888d6283174b7e4a590f344a3730cecbe9c88 /source | |
parent | b4e7451cb0547ede96922ae97ee440f17e452332 (diff) |
New option for disabling the chaining of feature edges in the Parameter Editor mode.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/DNA_linestyle_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_linestyle.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h index 6d1b60f1d83..3cc75246b99 100644 --- a/source/blender/makesdna/DNA_linestyle_types.h +++ b/source/blender/makesdna/DNA_linestyle_types.h @@ -321,6 +321,7 @@ typedef struct LineStyleThicknessModifier_Calligraphy { #define LS_MATERIAL_BOUNDARY 8 #define LS_MIN_2D_LENGTH 16 #define LS_MAX_2D_LENGTH 32 +#define LS_NO_CHAINING 64 /* FreestyleLineStyle::chaining */ #define LS_CHAINING_PLAIN 1 diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index 608d5c295a4..d98d1ae8b86 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -727,6 +727,11 @@ static void rna_def_linestyle(BlenderRNA *brna) RNA_def_property_struct_type(prop, "LineStyleThicknessModifier"); RNA_def_property_ui_text(prop, "Thickness Modifiers", "List of line thickness modifiers."); + prop= RNA_def_property(srna, "use_chaining", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", LS_NO_CHAINING); + RNA_def_property_ui_text(prop, "Chaining", "Enable chaining of feature edges."); + RNA_def_property_update(prop, NC_SCENE, NULL); + prop= RNA_def_property(srna, "chaining", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "chaining"); RNA_def_property_enum_items(prop, chaining_items); |