mirror of https://github.com/AxioDL/metaforce.git
Blender crash fix for recent blender-git builds
This commit is contained in:
parent
b8ac7f0082
commit
9169cac38c
|
@ -101,7 +101,7 @@ bool ReadANCSToBlender(hecl::BlenderConnection& conn,
|
||||||
"\n"
|
"\n"
|
||||||
"# Clear Scene\n"
|
"# Clear Scene\n"
|
||||||
"for ob in bpy.data.objects:\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.context.scene.objects.unlink(ob)\n"
|
||||||
" bpy.data.objects.remove(ob)\n"
|
" bpy.data.objects.remove(ob)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
|
@ -428,7 +428,7 @@ void InitGeomBlenderContext(hecl::BlenderConnection::PyOutStream& os,
|
||||||
"\n"
|
"\n"
|
||||||
"# Clear Scene\n"
|
"# Clear Scene\n"
|
||||||
"for ob in bpy.data.objects:\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.context.scene.objects.unlink(ob)\n"
|
||||||
" bpy.data.objects.remove(ob)\n"
|
" bpy.data.objects.remove(ob)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
Loading…
Reference in New Issue