Fixing Blender 2.71 support (Thanks to fluffrabbit)