Skip to content
Snippets Groups Projects
Commit c556fbc8 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

Cube Map Render: Prevent crash by setting users to zero first

This probably memleaks, but it is better than the alternative (crash).
parent 4a4a74c7
Branches
Tags
No related merge requests found
......@@ -385,10 +385,10 @@ def cube_map_post_update_cleanup(scene):
bpy.app.handlers.scene_update_post.remove(cube_map_post_update_cleanup)
else:
scenes_temp[0].user_clear()
try:
bpy.data.scenes.remove(scenes_temp[0], do_unlink=True)
bpy.data.scenes.remove(scenes_temp[0], do_unlink=False)
except TypeError:
print("Using old Blender, carrying on ...")
bpy.data.scenes.remove(scenes_temp[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment