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>2011-06-08 01:05:04 +0400
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2011-06-08 01:05:04 +0400
commit6194f1406389a915f706b43b55949536a9131aba (patch)
treef88897127bc92338b9fa183a1011c64f9359c553 /io_coat3D
parentad28aaf2baf650b638e65b6f7dcd7cfd5fef9b28 (diff)
Make sure that object has correct objectdir file
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/__init__.py4
-rw-r--r--io_coat3D/coat.py7
2 files changed, 3 insertions, 8 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index cce54b78..3cadefdc 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -19,8 +19,8 @@
bl_info = {
"name": "3D-Coat Applink",
"author": "Kalle-Samuli Riihikoski (haikalle)",
- "version": (1, 7, 0),
- "blender": (2, 5, 7),
+ "version": (1, 8, 0),
+ "blender": (2, 5, 8),
"api": 35622,
"location": "Scene > 3D-Coat Applink",
"description": "Transfer data between 3D-Coat/Blender",
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index 600b15da..72faf7e9 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -290,7 +290,7 @@ class SCENE_OT_import(bpy.types.Operator):
test = bpy.context.selected_objects
act_first = bpy.context.scene.objects.active
for act_name in test:
- if act_name.type == 'MESH':
+ if act_name.type == 'MESH' and os.path.isfile(act_name.coat3D.objectdir):
activeobj = act_name.name
mat_list = []
scene.objects[activeobj].select = True
@@ -342,8 +342,6 @@ class SCENE_OT_import(bpy.types.Operator):
bpy.data.materials.remove(proxy_mat)
bpy.ops.object.select_all(action='TOGGLE')
-
-
scene.objects.active = obj_proxy
obj_data = objekti.data.id_data
@@ -357,9 +355,6 @@ class SCENE_OT_import(bpy.types.Operator):
objekti.select = True
bpy.context.scene.objects.active = objekti
-
-
-
if(coat3D.smooth_on):
bpy.ops.object.shade_smooth()
else: