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>2012-11-28 14:36:18 +0400
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2012-11-28 14:36:18 +0400
commit683b7c8d472a10015497d11174d88b56bd828a75 (patch)
tree4f96cf2416970d4338219b0c58c5b4f6f201e58f
parentedb94d233e7dc236ef63ffc2408d29bd4afe6fe2 (diff)
fixes error that happens when trying to update mesh.
-rw-r--r--io_coat3D/coat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index ee81aead..0186e628 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -392,8 +392,9 @@ class SCENE_OT_import(bpy.types.Operator):
obj_data = objekti.data.id_data
objekti.data = obj_proxy.data.id_data
if(bpy.data.meshes[obj_data.name].users == 0):
- bpy.data.meshes.remove(obj_data)
objekti.data.id_data.name = obj_data.name
+ bpy.data.meshes.remove(obj_data)
+
obj_proxy.select = True
bpy.ops.object.delete()