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>2014-07-24 06:43:16 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-07-24 09:29:36 +0400
commit1819fa2b5aab703a0361d4312f19d2ee6cd7e51f (patch)
tree1b36caa6882496e413105c9ca258de49171f842e /release/scripts/freestyle/modules/parameter_editor.py
parentb408d8af31c9fba5898e353c97f95f7ce8dc19c1 (diff)
A follow-up to Patch D623: minor code updates and style cleanup.
Diffstat (limited to 'release/scripts/freestyle/modules/parameter_editor.py')
-rw-r--r--release/scripts/freestyle/modules/parameter_editor.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/release/scripts/freestyle/modules/parameter_editor.py b/release/scripts/freestyle/modules/parameter_editor.py
index 92814e87b1c..4c33e284630 100644
--- a/release/scripts/freestyle/modules/parameter_editor.py
+++ b/release/scripts/freestyle/modules/parameter_editor.py
@@ -207,13 +207,13 @@ class ThicknessBlenderMixIn(ThicknessModifierMixIn):
v = self.blend(outer + inner, v)
# Part 1: blend
- if self.position == "CENTER":
+ if self.position == 'CENTER':
outer = inner = v * 0.5
- elif self.position == "INSIDE":
+ elif self.position == 'INSIDE':
outer, inner = 0, v
- elif self.position == "OUTSIDE":
+ elif self.position == 'OUTSIDE':
outer, inner = v, 0
- elif self.position == "RELATIVE":
+ elif self.position == 'RELATIVE':
outer, inner = v * self.ratio, v - (v * self.ratio)
else:
raise ValueError("unknown thickness position: " + position)
@@ -415,10 +415,10 @@ class ColorMaterialShader(ColorRampModifier):
if not self.use_ramp and self.attribute in attributes:
for svert in it:
material = self.func(it)
- if self.attribute == 'DIFF':
- b = material.diffuse[0:3]
- elif self.attribute == 'LINE':
+ if self.attribute == 'LINE':
b = material.line[0:3]
+ elif self.attribute == 'DIFF':
+ b = material.diffuse[0:3]
else:
b = material.specular[0:3]
a = svert.attribute.color
@@ -706,10 +706,10 @@ class DashedLineShader(StrokeShader):
def shade(self, stroke):
start = 0.0 # 2D curvilinear length
visible = True
- """ The extra 'sampling' term is added below, because the
- visibility attribute of the i-th vertex refers to the
- visibility of the stroke segment between the i-th and
- (i+1)-th vertices. """
+ # The extra 'sampling' term is added below, because the
+ # visibility attribute of the i-th vertex refers to the
+ # visibility of the stroke segment between the i-th and
+ # (i+1)-th vertices.
sampling = 1.0
it = stroke.stroke_vertices_begin(sampling)
pattern_cycle = cycle(self.pattern)