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:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2018-08-28 23:25:52 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2018-08-28 23:25:52 +0300
commitb5a35bbd39af54dee33fc5ea039e49e6e9f450a8 (patch)
tree48402e611897d65074d526c06cba9a92b687467a /io_coat3D
parent2431b94e1347130392b9600fb7d78f8c90d1edb5 (diff)
Fixing transform bug 3dc->blender workflow
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/__init__.py4
1 files changed, 3 insertions, 1 deletions
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))