diff options
Diffstat (limited to 'greasepencil_tools/draw_tools.py')
-rw-r--r-- | greasepencil_tools/draw_tools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/greasepencil_tools/draw_tools.py b/greasepencil_tools/draw_tools.py index 6d2cf3a9..375b4332 100644 --- a/greasepencil_tools/draw_tools.py +++ b/greasepencil_tools/draw_tools.py @@ -10,7 +10,8 @@ class GP_OT_camera_flip_x(bpy.types.Operator): @classmethod def poll(cls, context): - return context.space_data.region_3d.view_perspective == 'CAMERA' + return context.area.type == 'VIEW_3D' \ + and context.space_data.region_3d.view_perspective == 'CAMERA' def execute(self, context): context.scene.camera.scale.x *= -1 |