for o in objs:
obj_res = resources[prototypes[o.name].name+".object"]
- st = scene_res.create_reference_statement("object", obj_res)
+ st = scene_res.create_reference_statement("object", obj_res, o.name)
# XXX Parent relationships screw up the location and rotation
st.sub.append(Statement("position", o.location[0], o.location[1], o.location[2]))
if o.rotation_mode=="AXIS_ANGLE":