diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-08-13 04:05:25 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-08-13 04:05:25 +0400 |
commit | 5057810bda81733eb55acca1d3eb5c73317d4c55 (patch) | |
tree | 9185c0800162c5baf661754fd1224bd938b1dd22 /source/blender | |
parent | 820ced18b980aac1f97278094fb5842c580afbc7 (diff) |
New line style option for splitting chains of feature edges at material boundaries.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesdna/DNA_linestyle_types.h | 7 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_linestyle.c | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h index 75662b9cd10..fc6ce430446 100644 --- a/source/blender/makesdna/DNA_linestyle_types.h +++ b/source/blender/makesdna/DNA_linestyle_types.h @@ -231,9 +231,10 @@ typedef struct LineStyleThicknessModifier_Material { #define LS_PANEL_MISC 6 /* FreestyleLineStyle::flag */ -#define LS_DS_EXPAND 1 /* for animation editors */ -#define LS_SAME_OBJECT 2 -#define LS_DASHED_LINE 4 +#define LS_DS_EXPAND 1 /* for animation editors */ +#define LS_SAME_OBJECT 2 +#define LS_DASHED_LINE 4 +#define LS_MATERIAL_BOUNDARY 8 /* FreestyleLineStyle::caps */ #define LS_CAPS_BUTT 1 diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index 79c69868067..a948f0032db 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -505,6 +505,11 @@ static void rna_def_linestyle(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Same Object", "If true, only feature edges of the same object are joined."); RNA_def_property_update(prop, NC_SCENE, NULL); + prop= RNA_def_property(srna, "material_boundary", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_MATERIAL_BOUNDARY); + RNA_def_property_ui_text(prop, "Material Boundary", "If true, chains of feature edges are split at material boundaries."); + RNA_def_property_update(prop, NC_SCENE, NULL); + prop= RNA_def_property(srna, "use_dashed_line", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", LS_DASHED_LINE); RNA_def_property_ui_text(prop, "Dashed Line", "Enable or disable dashed line."); |