Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| rd = scene.render | rd = scene.render | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.prop(rd, "hair_type", expand=True) | layout.prop(rd, "hair_type", expand=True) | ||||
| layout.prop(rd, "hair_subdiv") | layout.prop(rd, "hair_subdiv") | ||||
| class RENDER_PT_opengl_sampling(RenderButtonsPanel, Panel): | |||||
| bl_label = "Sampling" | |||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return (context.engine in cls.COMPAT_ENGINES) | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False # No animation. | |||||
| scene = context.scene | |||||
| props = scene.display | |||||
| col = layout.column() | |||||
| col.prop(props, "render_aa") | |||||
| col.prop(props, "viewport_aa") | |||||
brecht: For consistency with Eevee, the labels could just be "Render" and "Viewport". | |||||
jbakkerAuthorUnsubmitted Done Inline ActionsI didn't like the UI as the header states 'Sampling' but the setting are not.... But I can change it back and so can get some user feedback. jbakker: I didn't like the UI as the header states 'Sampling' but the setting are not.... But I can… | |||||
| class RENDER_PT_opengl_film(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_film(RenderButtonsPanel, Panel): | ||||
| bl_label = "Film" | bl_label = "Film" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| layout.prop(rd, "use_antialiasing") | |||||
| layout.prop(rd, "antialiasing_samples") | |||||
| layout.prop(rd, "alpha_mode") | layout.prop(rd, "alpha_mode") | ||||
| class RENDER_PT_opengl_lighting(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_lighting(RenderButtonsPanel, Panel): | ||||
| bl_label = "Lighting" | bl_label = "Lighting" | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | ||||
| @classmethod | @classmethod | ||||
| ▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | classes = ( | ||||
| RENDER_PT_eevee_volumetric_lighting, | RENDER_PT_eevee_volumetric_lighting, | ||||
| RENDER_PT_eevee_volumetric_shadows, | RENDER_PT_eevee_volumetric_shadows, | ||||
| RENDER_PT_eevee_hair, | RENDER_PT_eevee_hair, | ||||
| RENDER_PT_eevee_shadows, | RENDER_PT_eevee_shadows, | ||||
| RENDER_PT_eevee_indirect_lighting, | RENDER_PT_eevee_indirect_lighting, | ||||
| RENDER_PT_eevee_indirect_lighting_display, | RENDER_PT_eevee_indirect_lighting_display, | ||||
| RENDER_PT_eevee_film, | RENDER_PT_eevee_film, | ||||
| RENDER_PT_eevee_film_overscan, | RENDER_PT_eevee_film_overscan, | ||||
| RENDER_PT_opengl_sampling, | |||||
| RENDER_PT_opengl_lighting, | RENDER_PT_opengl_lighting, | ||||
| RENDER_PT_opengl_color, | RENDER_PT_opengl_color, | ||||
| RENDER_PT_opengl_options, | RENDER_PT_opengl_options, | ||||
| RENDER_PT_opengl_film, | RENDER_PT_opengl_film, | ||||
| RENDER_PT_color_management, | RENDER_PT_color_management, | ||||
| RENDER_PT_color_management_curves, | RENDER_PT_color_management_curves, | ||||
| RENDER_PT_simplify, | RENDER_PT_simplify, | ||||
| RENDER_PT_simplify_viewport, | RENDER_PT_simplify_viewport, | ||||
| RENDER_PT_simplify_render, | RENDER_PT_simplify_render, | ||||
| RENDER_PT_simplify_greasepencil, | RENDER_PT_simplify_greasepencil, | ||||
| ) | ) | ||||
| if __name__ == "__main__": # only for live edit. | if __name__ == "__main__": # only for live edit. | ||||
| from bpy.utils import register_class | from bpy.utils import register_class | ||||
| for cls in classes: | for cls in classes: | ||||
| register_class(cls) | register_class(cls) | ||||
For consistency with Eevee, the labels could just be "Render" and "Viewport".