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:
authorOmarSquircleArt <omar.squircleart@gmail.com>2019-09-09 19:18:19 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-09 19:18:19 +0300
commit563f8717da3761dadebc071e1de318e2932bb1e6 (patch)
treedf29e8e0b81ad60d68c6f7552d76947e235f1479 /archimesh
parent14abe13dc890ba8fc7f78723ad67533ec2146aff (diff)
Fix T69664: Update add-ons for Mapping node changes.
The Mapping node was update to have dynamic inputs that can be linked. Moreover, the min and max options were removed entrily. This broke add-ons that used the Mapping node, so this patch fixes those add-ons. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D5732
Diffstat (limited to 'archimesh')
-rw-r--r--archimesh/achm_tools.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archimesh/achm_tools.py b/archimesh/achm_tools.py
index 2078801f..4aab64c4 100644
--- a/archimesh/achm_tools.py
+++ b/archimesh/achm_tools.py
@@ -803,9 +803,9 @@ def create_fabric_material(matname, replace, r, g, b, rv=0.8, gv=0.636, bv=0.315
node = nodes.new('ShaderNodeMapping')
node.name = 'UVMapping'
node.location = 266, 380
- node.scale[0] = 1000
- node.scale[1] = 1000
- node.scale[2] = 1000
+ node.inputs['Scale'].default_value[0] = 1000
+ node.inputs['Scale'].default_value[1] = 1000
+ node.inputs['Scale'].default_value[2] = 1000
# ===========================================================================
# Image texture