Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | class RenderButtonsPanel: | ||||
| # COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here | # COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.render.engine in cls.COMPAT_ENGINES) | ||||
| class RENDER_PT_context(Panel): | |||||
| bl_space_type = 'PROPERTIES' | |||||
| bl_region_type = 'WINDOW' | |||||
| bl_context = "render" | |||||
| bl_options = {'HIDE_HEADER'} | |||||
| bl_label = "" | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return context.scene | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| rd = scene.render | |||||
| if rd.has_multiple_engines: | |||||
| layout.prop(rd, "engine", text="") | |||||
| class RENDER_PT_render(RenderButtonsPanel, Panel): | class RENDER_PT_render(RenderButtonsPanel, Panel): | ||||
| bl_label = "Render" | bl_label = "Render" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER'} | COMPAT_ENGINES = {'BLENDER_RENDER'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| ▲ Show 20 Lines • Show All 699 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.prop(props, "shadow_size") | col.prop(props, "shadow_size") | ||||
| col.prop(props, "shadow_high_bitdepth") | col.prop(props, "shadow_high_bitdepth") | ||||
| classes = ( | classes = ( | ||||
| RENDER_MT_presets, | RENDER_MT_presets, | ||||
| RENDER_MT_ffmpeg_presets, | RENDER_MT_ffmpeg_presets, | ||||
| RENDER_MT_framerate_presets, | RENDER_MT_framerate_presets, | ||||
| RENDER_PT_context, | |||||
| RENDER_PT_render, | RENDER_PT_render, | ||||
| RENDER_PT_dimensions, | RENDER_PT_dimensions, | ||||
| RENDER_PT_antialiasing, | RENDER_PT_antialiasing, | ||||
| RENDER_PT_motion_blur, | RENDER_PT_motion_blur, | ||||
| RENDER_PT_shading, | RENDER_PT_shading, | ||||
| RENDER_PT_performance, | RENDER_PT_performance, | ||||
| RENDER_PT_post_processing, | RENDER_PT_post_processing, | ||||
| RENDER_PT_stamp, | RENDER_PT_stamp, | ||||
| Show All 16 Lines | |||||