added compatibility to blender 2.67