[Bf-extensions-cvs] [b38fe93e] blender2.8: Only textures update bug fixed.
Kalle-Samuli Riihikoski
noreply at git.blender.org
Thu Sep 6 10:20:23 CEST 2018
Commit: b38fe93ecb8021a0bf3f1d8359c69016bd756584
Author: Kalle-Samuli Riihikoski
Date: Thu Sep 6 11:18:28 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBAb38fe93ecb8021a0bf3f1d8359c69016bd756584
Only textures update bug fixed.
===================================================================
M io_coat3D/__init__.py
===================================================================
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 15b9759b..ba56d653 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -684,6 +684,18 @@ class SCENE_OT_import(bpy.types.Operator):
is_new = False
tex.matlab(mat_list,objekti,bpy.context.scene,is_new)
objekti.select_set('DESELECT')
+ else:
+ mat_list = []
+
+ if (objekti.material_slots):
+ for obj_mat in objekti.material_slots:
+ mat_list.append(obj_mat.material)
+
+ if (coat3D.importtextures):
+ is_new = False
+ tex.matlab(mat_list, objekti, bpy.context.scene, is_new)
+ objekti.select_set('DESELECT')
+
bpy.ops.object.select_all(action='DESELECT')
if(import_list):
More information about the Bf-extensions-cvs
mailing list