__label__ = "Lens"
def poll(self, context):
- return (context.object.type == 'CAMERA')
+ return (context.object and context.object.type == 'CAMERA')
def draw(self, context):
layout = self.layout
col.itemR(cam, "draw_size", text="Size")
bpy.types.register(DATA_PT_camera)
-bpy.types.register(DATA_PT_camera_display)
\ No newline at end of file
+bpy.types.register(DATA_PT_camera_display)