**System Information**
Debian 7.4 64bit, also occurs on OSX
**Blender Version**
Broken: 2.63, 2.69.0
**Short description of error**
Under certain conditions objects which have been unlinked from a scene do reappear.
**Exact steps for others to reproduce the error**
# Start blender with `./blender --python delete.py` (see below for the script) (blender just shows an empty scene)
# Once the GUI is loaded, do: **Add -> Mesh -> Plane**
# Immediately afterwards hit **F6** and adjust one Property of the newly added object (e.g. the radius)
Result: the objects from the start scene (camera, lamp, cube) reappear.
**Doesn't occur when...**
- ... A second Mesh is inserted before hitting **F6** to change its properties
- ... The script is executed in the Blender Editor (and not at startup with option `--python`)
**Python script `delete.py` **
import bpy
# IMPORTANT: run as: ./blender --python delete.py
# once blender started, here is what I did in Blender GUI:
# - add a new mesh (Add -> Mesh -> Plane)
# - Hit F6 immediately afterwards and modify radius
# Result: Blender start scene (cube, light & camera) is visible again
# the described bahaviour and result is the same for deleteScene1() - deleteScene3()
def deleteScene1():
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete()
def deleteScene2():
bpy.ops.object.select_by_type(type='MESH')
bpy.ops.object.delete()
bpy.ops.object.select_by_type(type='LAMP')
bpy.ops.object.delete()
bpy.ops.object.select_by_type(type='CAMERA')
bpy.ops.object.delete()
def deleteScene3():
scn = bpy.context.scene
for obj in scn.objects:
scn.objects.unlink(obj)
#deleteScene1()
#deleteScene2()
deleteScene3()