Hi,
I think I’ve found a bug but I need to ensure it’s not a problem on my side.
I need to merge several blend files together via command line. Here is the script (simplified for the purpose of this thread):
import sys, bpy
def appendBlendFile(blendFilePath):
scn = bpy.context.scene
with bpy.data.libraries.load(blendFilePath, link=False) as (data_from, data_to):
data_to.objects = [obj for obj in data_from.objects]
for obj in data_to.objects:
if obj is not None:
scn.objects.link(obj)
print("Load scene")
appendBlendFile(bpy.path.abspath("//" + sys.argv[4]))
print("Select test")
bpy.ops.object.select_all(action='SELECT')
print("Success")
I execute this script with a command line like this:
"C:/Program Files/Blender Foundation/Blender/blender.exe" Scene1.blend -P AppendScript.py Scene2.blend
It worked well with Blender 2.77. But with Blender 2.78, if the Scene2.blend has some object with parenting, blender crashes with an “EXCEPTION_ACCESS_VIOLATION” when reaching the line
bpy.ops.object.select_all(action='SELECT')
.
Is this a known issue ? Is there something I’m doing wrong and it worked previously by “chance” ?
Note : tested on Windows 10
Many thanks !