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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-05 00:34:20 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-05 02:22:33 +0300
commit4e37796976f9cbea24f3e94e0145cf280a5918f9 (patch)
treef38aec6a337bba3433cd3dfb7118aa70dcda6b71 /release/scripts/freestyle
parent287c023b8535ba42170d1c8ec56e4c258ff70ca5 (diff)
Fix various Freestyle rendering bugs.
Diffstat (limited to 'release/scripts/freestyle')
-rw-r--r--release/scripts/freestyle/modules/parameter_editor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/freestyle/modules/parameter_editor.py b/release/scripts/freestyle/modules/parameter_editor.py
index c2b23f017fe..f2001a1ae50 100644
--- a/release/scripts/freestyle/modules/parameter_editor.py
+++ b/release/scripts/freestyle/modules/parameter_editor.py
@@ -391,7 +391,7 @@ class ColorDistanceFromObjectShader(ColorRampModifier):
# construct a model-view matrix
matrix = getCurrentScene().camera.matrix_world.inverted()
# get the object location in the camera coordinate
- self.loc = matrix * target.location
+ self.loc = matrix @ target.location
def shade(self, stroke):
it = iter_distance_from_object(stroke, self.loc, *self.range)
@@ -411,7 +411,7 @@ class AlphaDistanceFromObjectShader(CurveMappingModifier):
# construct a model-view matrix
matrix = getCurrentScene().camera.matrix_world.inverted()
# get the object location in the camera coordinate
- self.loc = matrix * target.location
+ self.loc = matrix @ target.location
def shade(self, stroke):
it = iter_distance_from_object(stroke, self.loc, *self.range)
@@ -434,7 +434,7 @@ class ThicknessDistanceFromObjectShader(ThicknessBlenderMixIn, CurveMappingModif
# construct a model-view matrix
matrix = getCurrentScene().camera.matrix_world.inverted()
# get the object location in the camera coordinate
- self.loc = matrix * target.location
+ self.loc = matrix @ target.location
def shade(self, stroke):
it = iter_distance_from_object(stroke, self.loc, *self.range)
@@ -520,7 +520,7 @@ class CalligraphicThicknessShader(ThicknessBlenderMixIn, ScalarBlendModifier):
dir = self.func(it)
if dir.length != 0.0:
dir.normalize()
- fac = abs(dir.orthogonal() * self.orientation)
+ fac = abs(dir.orthogonal() @ self.orientation)
b = self.thickness.min + fac * self.thickness.delta
else:
b = self.thickness.min