Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
| Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | |||||
| class AnnotationDataPanel: | class AnnotationDataPanel: | ||||
| bl_label = "Annotations" | bl_label = "Annotations" | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| if context.space_data.type not in {'VIEW_3D', 'TOPBAR'}: | if context.space_data.type not in {'VIEW_3D', 'TOPBAR', 'SEQUENCE_EDITOR'}: | ||||
| self.layout.prop(context.space_data, "show_annotation", text="") | self.layout.prop(context.space_data, "show_annotation", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| is_clip_editor = context.space_data.type == 'CLIP_EDITOR' | is_clip_editor = context.space_data.type == 'CLIP_EDITOR' | ||||
| ▲ Show 20 Lines • Show All 536 Lines • Show Last 20 Lines | |||||