Blender crash fix for recent blender-git builds

This commit is contained in:
Jack Andersen 2016-08-09 09:16:31 -10:00
parent b8ac7f0082
commit 9169cac38c
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ bool ReadANCSToBlender(hecl::BlenderConnection& conn,
"\n"
"# Clear Scene\n"
"for ob in bpy.data.objects:\n"
" if ob.type != 'LAMP':\n"
" if ob.type != 'LAMP' and ob.type != 'CAMERA':\n"
" bpy.context.scene.objects.unlink(ob)\n"
" bpy.data.objects.remove(ob)\n"
"\n"

View File

@ -428,7 +428,7 @@ void InitGeomBlenderContext(hecl::BlenderConnection::PyOutStream& os,
"\n"
"# Clear Scene\n"
"for ob in bpy.data.objects:\n"
" if ob.type != 'LAMP':\n"
" if ob.type != 'LAMP' and ob.type != 'CAMERA':\n"
" bpy.context.scene.objects.unlink(ob)\n"
" bpy.data.objects.remove(ob)\n"
"\n"