Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-01-30 14:44:08 +0300
committerJacques Lucke <mail@jlucke.com>2019-01-30 14:44:08 +0300
commit4e8ddec4e1be8e67da90fe244707fb2077837604 (patch)
tree1e116292da425f16ee9f6818ee5deda7aa84cd24 /add_curve_extra_objects
parent04dc7f2acbe3d7b6dc5c85ce259aba17bd747448 (diff)
Fix: Material.diffuse_color has an alpha component now
Diffstat (limited to 'add_curve_extra_objects')
-rw-r--r--add_curve_extra_objects/add_curve_torus_knots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_curve_extra_objects/add_curve_torus_knots.py b/add_curve_extra_objects/add_curve_torus_knots.py
index a3c05ff6..30d19b58 100644
--- a/add_curve_extra_objects/add_curve_torus_knots.py
+++ b/add_curve_extra_objects/add_curve_torus_knots.py
@@ -325,10 +325,10 @@ def addLinkColors(self, curveData):
# set material color
if self.options_plus and self.random_colors:
- mat.diffuse_color = random(), random(), random()
+ mat.diffuse_color = (random(), random(), random(), 1.0)
else:
cID = i % (len(colors)) # cycle through predefined colors
- mat.diffuse_color = colors[cID]
+ mat.diffuse_color = (*colors[cID], 1.0)
if self.options_plus:
mat.diffuse_color.s = self.saturation