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-08-09 17:47:42 +0400
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2011-08-09 17:47:42 +0400
commitd90c4808f6d282ab6bbd34a1d0fb08608250b0a9 (patch)
treea4edb0322f6cd77c03bbbf3e32eb27be8381747f /io_coat3D
parent6cd3355bebe1b55fb49ec658faa01c7c33ea3fc3 (diff)
Update the script to work with RC.
material.pop(0) into material.pop(0,1)
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/coat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index 491da621..07b30cef 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -322,7 +322,7 @@ class SCENE_OT_import(bpy.types.Operator):
bpy.ops.object.transform_apply(rotation=True)
proxy_mat = obj_proxy.material_slots[0].material
- obj_proxy.data.materials.pop(0)
+ obj_proxy.data.materials.pop(0,1)
proxy_mat.user_clear()
bpy.data.materials.remove(proxy_mat)
bpy.ops.object.select_all(action='TOGGLE')