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 /release/scripts/freestyle | |
parent | b4e7451cb0547ede96922ae97ee440f17e452332 (diff) |
New option for disabling the chaining of feature edges in the Parameter Editor mode.
Diffstat (limited to 'release/scripts/freestyle')
-rw-r--r-- | release/scripts/freestyle/style_modules/parameter_editor.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/release/scripts/freestyle/style_modules/parameter_editor.py b/release/scripts/freestyle/style_modules/parameter_editor.py index 80ac350a39a..0c4987aabb8 100644 --- a/release/scripts/freestyle/style_modules/parameter_editor.py +++ b/release/scripts/freestyle/style_modules/parameter_editor.py @@ -919,16 +919,17 @@ def process(layer_name, lineset_name): upred = TrueUP1D() Operators.select(upred) # join feature edges to form chains - if linestyle.chaining == "PLAIN": - if linestyle.same_object: - Operators.bidirectionalChain(ChainSilhouetteIterator(), NotUP1D(upred)) - else: - Operators.bidirectionalChain(ChainPredicateIterator(upred, TrueBP1D()), NotUP1D(upred)) - elif linestyle.chaining == "SKETCHY": - if linestyle.same_object: - Operators.bidirectionalChain(pySketchyChainSilhouetteIterator(linestyle.rounds)) - else: - Operators.bidirectionalChain(pySketchyChainingIterator(linestyle.rounds)) + if linestyle.use_chaining: + if linestyle.chaining == "PLAIN": + if linestyle.same_object: + Operators.bidirectionalChain(ChainSilhouetteIterator(), NotUP1D(upred)) + else: + Operators.bidirectionalChain(ChainPredicateIterator(upred, TrueBP1D()), NotUP1D(upred)) + elif linestyle.chaining == "SKETCHY": + if linestyle.same_object: + Operators.bidirectionalChain(pySketchyChainSilhouetteIterator(linestyle.rounds)) + else: + Operators.bidirectionalChain(pySketchyChainingIterator(linestyle.rounds)) # split chains if linestyle.material_boundary: Operators.sequentialSplit(MaterialBoundaryUP0D()) |