Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Context not available. | |||||
| if elem and elem.orig_width > 0 and elem.orig_height > 0: | if elem and elem.orig_width > 0 and elem.orig_height > 0: | ||||
| col.label(text=iface_("Original Dimension: %dx%d") % (elem.orig_width, elem.orig_height), translate=False) | col.label(text=iface_("Original Dimension: %dx%d") % (elem.orig_width, elem.orig_height), translate=False) | ||||
| class SEQUENCER_PT_preview(SequencerButtonsPanel, Panel): | |||||
| bl_label = "Preview Settings" | |||||
lijenstina: Style: Expected 2 blank lines before class definitions (E302) | |||||
| bl_category = "Strip" | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| frame_current = scene.frame_current | |||||
| strip = act_strip(context) | |||||
| if (strip != None and strip.type == 'SCENE'): | |||||
| col = layout.column() | |||||
| col.label(text="Render Engine: ") | |||||
| row = col.row() | |||||
Not Done Inline ActionsIt's odd this is shown before checking if it could be None, probably this panel should have a poll that checks for a scene? Also, strip.use_view_render_override is not allocated and can never be NULL. campbellbarton: It's odd this is shown before checking if it could be `None`, probably this panel should have… | |||||
Not Done Inline ActionsSorry this was sloppy for sure - nice catch :) Updated to use poll as other classes do... spockTheGray: Sorry this was sloppy for sure - nice catch :) Updated to use poll as other classes do... | |||||
| row.prop(strip.view_render, "engine", text="") | |||||
Done Inline ActionsShould be strip is not None campbellbarton: Should be `strip is not None` | |||||
| class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Effect Strip" | bl_label = "Effect Strip" | ||||
| Context not available. | |||||
| col.operator("sequencer.rebuild_proxy") | col.operator("sequencer.rebuild_proxy") | ||||
| class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel): | |||||
| bl_label = "Scene Preview/Render" | |||||
| bl_space_type = 'SEQUENCE_EDITOR' | |||||
| bl_region_type = 'UI' | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| render = context.scene.render | |||||
| col = layout.column() | |||||
| col.prop(render, "sequencer_gl_preview", text="") | |||||
| row = col.row() | |||||
| row.active = render.sequencer_gl_preview == 'SOLID' | |||||
| row.prop(render, "use_sequencer_gl_textured_solid") | |||||
| class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): | class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): | ||||
| bl_label = "View Settings" | bl_label = "View Settings" | ||||
Not Done Inline ActionsTrailing spaces lijenstina: Trailing spaces | |||||
| Context not available. | |||||
| SEQUENCER_MT_strip_input, | SEQUENCER_MT_strip_input, | ||||
| SEQUENCER_MT_strip_lock_mute, | SEQUENCER_MT_strip_lock_mute, | ||||
| SEQUENCER_PT_edit, | SEQUENCER_PT_edit, | ||||
| SEQUENCER_PT_preview, | |||||
| SEQUENCER_PT_effect, | SEQUENCER_PT_effect, | ||||
| SEQUENCER_PT_input, | SEQUENCER_PT_input, | ||||
| SEQUENCER_PT_sound, | SEQUENCER_PT_sound, | ||||
| Context not available. | |||||
| SEQUENCER_PT_mask, | SEQUENCER_PT_mask, | ||||
| SEQUENCER_PT_filter, | SEQUENCER_PT_filter, | ||||
| SEQUENCER_PT_proxy, | SEQUENCER_PT_proxy, | ||||
| SEQUENCER_PT_preview, | |||||
| SEQUENCER_PT_view, | SEQUENCER_PT_view, | ||||
| SEQUENCER_PT_view_safe_areas, | SEQUENCER_PT_view_safe_areas, | ||||
| SEQUENCER_PT_modifiers, | SEQUENCER_PT_modifiers, | ||||
| Context not available. | |||||
Style: Expected 2 blank lines before class definitions (E302)