diff options
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index ff71c7a825a..d5ef24d7ff3 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -1996,6 +1996,15 @@ class SEQUENCER_PT_annotation(AnnotationDataPanel, SequencerButtonsPanel_Output, bl_region_type = 'UI' bl_category = "View" + @staticmethod + def has_preview(context): + st = context.space_data + return st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'} + + @classmethod + def poll(cls, context): + return cls.has_preview(context) + # NOTE: this is just a wrapper around the generic GP Panel # But, it should only show up when there are images in the preview region |