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/contour.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/contour.py')
-rw-r--r--release/scripts/freestyle/styles/contour.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/release/scripts/freestyle/styles/contour.py b/release/scripts/freestyle/styles/contour.py
index f7a42d9c906..3d754cc63cf 100644
--- a/release/scripts/freestyle/styles/contour.py
+++ b/release/scripts/freestyle/styles/contour.py
@@ -21,9 +21,20 @@
# Date : 04/08/2005
# Purpose : Draws each object's visible contour
-from freestyle import ChainPredicateIterator, ConstantThicknessShader, ContourUP1D, IncreasingColorShader, \
- Operators, QuantitativeInvisibilityUP1D, SameShapeIdBP1D, TrueUP1D
-from logical_operators import AndUP1D, NotUP1D
+from freestyle import Operators
+from freestyle.chainingiterators import ChainPredicateIterator
+from freestyle.predicates import (
+ AndUP1D,
+ ContourUP1D,
+ NotUP1D,
+ QuantitativeInvisibilityUP1D,
+ SameShapeIdBP1D,
+ TrueUP1D,
+ )
+from freestyle.shaders import (
+ ConstantThicknessShader,
+ IncreasingColorShader,
+ )
Operators.select(AndUP1D(QuantitativeInvisibilityUP1D(0), ContourUP1D()))
bpred = SameShapeIdBP1D()