diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-08-09 17:47:42 +0400 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-08-09 17:47:42 +0400 |
commit | d90c4808f6d282ab6bbd34a1d0fb08608250b0a9 (patch) | |
tree | a4edb0322f6cd77c03bbbf3e32eb27be8381747f /io_coat3D | |
parent | 6cd3355bebe1b55fb49ec658faa01c7c33ea3fc3 (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.py | 2 |
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') |