[Bf-extensions-cvs] [b5a35bbd] blender2.8: Fixing transform bug 3dc->blender workflow
Kalle-Samuli Riihikoski
noreply at git.blender.org
Tue Aug 28 22:27:40 CEST 2018
Commit: b5a35bbd39af54dee33fc5ea039e49e6e9f450a8
Author: Kalle-Samuli Riihikoski
Date: Tue Aug 28 23:25:52 2018 +0300
Branches: blender2.8
https://developer.blender.org/rBAb5a35bbd39af54dee33fc5ea039e49e6e9f450a8
Fixing transform bug 3dc->blender workflow
===================================================================
M io_coat3D/__init__.py
===================================================================
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index f1dab798..d5e0f924 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -338,7 +338,7 @@ class SCENE_OT_import(bpy.types.Operator):
img_list.append(node.image)
if img_list != []:
for del_img in img_list:
- bpy.data.images.remove(bpy.data.images[del_img])
+ bpy.data.images.remove(del_img)
bpy.data.materials.remove(material)
@@ -623,6 +623,8 @@ class SCENE_OT_import(bpy.types.Operator):
new_obj.select_set('SELECT')
#bpy.ops.object.origin_set(type='GEOMETRY_ORIGIN')
new_obj.rotation_euler = (0, 0, 0)
+ new_obj.scale = (1, 1, 1)
+ new_obj.coat3D.applink_firsttime = False
new_obj.select_set('DESELECT')
new_obj.coat3D.applink_address = new_applink_address
new_obj.coat3D.objecttime = str(os.path.getmtime(new_obj.coat3D.applink_address))
More information about the Bf-extensions-cvs
mailing list