[Bf-extensions-cvs] [21b1cc06] blender2.8: Fixing vertex groups bug. Also node locate update.

Kalle-Samuli Riihikoski noreply at git.blender.org
Tue Sep 4 16:58:07 CEST 2018


Commit: 21b1cc0648b53f74496af37de6ecaa9ba0f1c914
Author: Kalle-Samuli Riihikoski
Date:   Tue Sep 4 17:56:24 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBA21b1cc0648b53f74496af37de6ecaa9ba0f1c914

Fixing vertex groups bug. Also node locate update.

===================================================================

M	io_coat3D/__init__.py
M	io_coat3D/tex.py

===================================================================

diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 5813d730..15b9759b 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -188,7 +188,7 @@ def updatemesh(objekti, proxy):
 
     #TO DO VERTEX GROUPS, gives an error with this code.
 
-    if(objekti.vertex_groups.keys != []):
+    if(objekti.vertex_groups.keys() != []):
         bpy.ops.object.select_all(action='DESELECT')
         proxy.select_set('SELECT')
         objekti.select_set('SELECT')
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index b6ea441e..733d8471 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -114,7 +114,7 @@ def createnodes(objekti,texcoat): #luo nodes palikat ja linkittaa tekstuurit nii
         #Metalness
         if(bring_metalness == True and glue_mat.inputs.find('Metallic') != -1 and texcoat['metalness'] != []):
             node = act_material.node_tree.nodes.new('ShaderNodeTexImage')
-            node.location = -600,200
+            node.location = -830,160
             node.name='3DC_metalness'
             if(texcoat['metalness']):
                 node.image = bpy.data.images.load(texcoat['metalness'][0])
@@ -137,8 +137,8 @@ def createnodes(objekti,texcoat): #luo nodes palikat ja linkittaa tekstuurit nii
         if(bring_normal == True and glue_mat.inputs.find('Normal') != -1 and texcoat['nmap'] != []):
             node = act_material.node_tree.nodes.new('ShaderNodeTexImage')
             normal_node = act_material.node_tree.nodes.new('ShaderNodeNormalMap')
-            node.location = -600,-270
-            normal_node.location = -300,-170
+            node.location = -600,-370
+            normal_node.location = -300,-270
             node.name='3DC_normal'
             if(texcoat['nmap']):
                 node.image = bpy.data.images.load(texcoat['nmap'][0])



More information about the Bf-extensions-cvs mailing list