diff options
Diffstat (limited to 'archimesh/achm_tools.py')
-rw-r--r-- | archimesh/achm_tools.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/archimesh/achm_tools.py b/archimesh/achm_tools.py index 8d44fe0c..3a775516 100644 --- a/archimesh/achm_tools.py +++ b/archimesh/achm_tools.py @@ -328,7 +328,7 @@ def create_diffuse_material(matname, replace, r, g, b, rv=0.8, gv=0.8, bv=0.8, m return m # Create material mat = bpy.data.materials.new(matname) - mat.diffuse_color = (rv, gv, bv) # viewport color + mat.diffuse_color = (rv, gv, bv, 1.0) # viewport color mat.use_nodes = True nodes = mat.node_tree.nodes @@ -412,7 +412,7 @@ def create_translucent_material(matname, replace, r, g, b, rv=0.8, gv=0.8, bv=0. return m # Create material mat = bpy.data.materials.new(matname) - mat.diffuse_color = (rv, gv, bv) # viewport color + mat.diffuse_color = (rv, gv, bv, 1.0) # viewport color mat.use_nodes = True nodes = mat.node_tree.nodes @@ -465,7 +465,7 @@ def create_glass_material(matname, replace, rv=0.333, gv=0.342, bv=0.9): # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (rv, gv, bv) + mat.diffuse_color = (rv, gv, bv, 1.0) nodes = mat.node_tree.nodes # support for multilanguage @@ -544,7 +544,7 @@ def create_transparent_material(matname, replace, r=1, g=1, b=1, alpha=0): # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (r, g, b) + mat.diffuse_color = (r, g, b, 1.0) nodes = mat.node_tree.nodes # support for multilanguage @@ -580,7 +580,7 @@ def create_glossy_material(matname, replace, r, g, b, rv=0.578, gv=0.555, bv=0.7 # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (rv, gv, bv) + mat.diffuse_color = (rv, gv, bv, 1.0) nodes = mat.node_tree.nodes # support for multilanguage @@ -653,7 +653,7 @@ def create_old_glass_material(matname, replace, rv=0.352716, gv=0.760852, bv=0.9 # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (rv, gv, bv) + mat.diffuse_color = (rv, gv, bv, 1.0) nodes = mat.node_tree.nodes # support for multilanguage @@ -726,7 +726,7 @@ def create_brick_material(matname, replace, r, g, b, rv=0.8, gv=0.636, bv=0.315) # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (rv, gv, bv) + mat.diffuse_color = (rv, gv, bv, 1.0) nodes = mat.node_tree.nodes # support for multilanguage @@ -782,7 +782,7 @@ def create_fabric_material(matname, replace, r, g, b, rv=0.8, gv=0.636, bv=0.315 # Create material mat = bpy.data.materials.new(matname) mat.use_nodes = True - mat.diffuse_color = (rv, gv, bv) + mat.diffuse_color = (rv, gv, bv, 1.0) nodes = mat.node_tree.nodes # support for multilanguage |