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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-11-25 02:18:38 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-01-28 18:33:58 +0400
commit54e90167704072f0105eb279e7431caa6c4d8e20 (patch)
treece17a581373aa05cd040b3423b4c112d47ba7e57 /release/scripts/freestyle/styles/multiple_parameterization.py
parent6498b96ce7081db039354228213d72e8c70bd3aa (diff)
Updated Freestyle API modules according to the new hierarchical package structure.
Additional bug fixes were also done along with the code updates: * Fix for the use of old Interface1D.pointsBegin() and .pointsEnd() method names in the definition of pyDensityAnisotropyF1D and pyViewMapGradientNormF1D. * Fix for wrong data types (int instead of bool) for: - pyChainSilhouetteGenericIterator constructor and its .orientation property in modules/freestyle/chainingiterators.py. - SpatialNoiseShader constructor in styles/external_contour_sketchy.py. - ChainSilhouetteIterator constructor in styles/multiple_parameterization.py.
Diffstat (limited to 'release/scripts/freestyle/styles/multiple_parameterization.py')
-rw-r--r--release/scripts/freestyle/styles/multiple_parameterization.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/release/scripts/freestyle/styles/multiple_parameterization.py b/release/scripts/freestyle/styles/multiple_parameterization.py
index 922a5ffa972..da140c75147 100644
--- a/release/scripts/freestyle/styles/multiple_parameterization.py
+++ b/release/scripts/freestyle/styles/multiple_parameterization.py
@@ -27,15 +27,25 @@
# the strokes using a second parameterization that only
# covers the visible portions.
-from freestyle import ChainSilhouetteIterator, ConstantColorShader, IncreasingColorShader, \
- IncreasingThicknessShader, Operators, QuantitativeInvisibilityUP1D, SamplingShader, \
- TextureAssignerShader, TrueUP1D
-from shaders import pyHLRShader
+from freestyle import Operators
+from freestyle.chainingiterators import ChainSilhouetteIterator
+from freestyle.predicates import (
+ QuantitativeInvisibilityUP1D,
+ TrueUP1D,
+ )
+from freestyle.shaders import (
+ ConstantColorShader,
+ IncreasingColorShader,
+ IncreasingThicknessShader,
+ SamplingShader,
+ TextureAssignerShader,
+ pyHLRShader,
+ )
Operators.select(QuantitativeInvisibilityUP1D(0))
## Chain following the same nature, but without the restriction
-## of staying inside the selection (0).
-Operators.bidirectional_chain(ChainSilhouetteIterator(0))
+## of staying inside the selection (False).
+Operators.bidirectional_chain(ChainSilhouetteIterator(False))
shaders_list = [
SamplingShader(20),
IncreasingThicknessShader(1.5, 30),