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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-09-06 12:56:43 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-09-14 11:22:01 +0300
commitd023f6e8de71a35ca13caa535a131b4a43f93b92 (patch)
tree8c91c27f627b652545060849bfe36c3ad04fcf5a
parent5114831be3ef949f80daa193eba2aeddd7f1727d (diff)
Fix T49270: UV Export layout broken since new datablock handling.
RNA API to remove datablocks has been unified, no more implicit unlinking is done like it used to be for some types (most notably Scenes)...
-rw-r--r--io_mesh_uv_layout/export_uv_png.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py
index 5da543cc..51daeb79 100644
--- a/io_mesh_uv_layout/export_uv_png.py
+++ b/io_mesh_uv_layout/export_uv_png.py
@@ -137,14 +137,14 @@ def write(fw, mesh_source, image_width, image_height, opacity, face_iter_func):
bpy.ops.render.render(data_context, write_still=True)
# cleanup
- bpy.data.scenes.remove(scene)
- bpy.data.objects.remove(obj_cam)
- bpy.data.objects.remove(obj_solid)
- bpy.data.objects.remove(obj_wire)
+ bpy.data.scenes.remove(scene, do_unlink=True)
+ bpy.data.objects.remove(obj_cam, do_unlink=True)
+ bpy.data.objects.remove(obj_solid, do_unlink=True)
+ bpy.data.objects.remove(obj_wire, do_unlink=True)
- bpy.data.cameras.remove(cam)
- bpy.data.meshes.remove(mesh)
+ bpy.data.cameras.remove(cam, do_unlink=True)
+ bpy.data.meshes.remove(mesh, do_unlink=True)
- bpy.data.materials.remove(material_wire)
+ bpy.data.materials.remove(material_wire, do_unlink=True)
for mat_solid in material_solids:
- bpy.data.materials.remove(mat_solid)
+ bpy.data.materials.remove(mat_solid, do_unlink=True)