Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_scene.py
| Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| layout.active = rd.use_simplify | layout.active = rd.use_simplify | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column(align=True) | ||||
| col.label(text="Viewport") | |||||
dingto: Same as above | |||||
| col.prop(rd, "simplify_subdivision", text="Subdivision") | col.prop(rd, "simplify_subdivision", text="Subdivision") | ||||
| col.prop(rd, "simplify_child_particles", text="Child Particles") | col.prop(rd, "simplify_child_particles", text="Child Particles") | ||||
| col.prop(rd, "use_simplify_triangulate") | col = split.column(align=True) | ||||
| col.label(text="Render") | |||||
dingtoUnsubmitted Not Done Inline ActionsAnd again. dingto: And again. | |||||
| col = split.column() | col.prop(rd, "simplify_subdivision_render", text="Subdivision") | ||||
| col.prop(rd, "simplify_child_particles_render", text="Child Particles") | |||||
| col.prop(rd, "simplify_shadow_samples", text="Shadow Samples") | col.prop(rd, "simplify_shadow_samples", text="Shadow Samples") | ||||
| col.prop(rd, "simplify_ao_sss", text="AO and SSS") | col.prop(rd, "simplify_ao_sss", text="AO and SSS") | ||||
| col.prop(rd, "use_simplify_triangulate") | |||||
| class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): | class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} | ||||
| _context_path = "scene" | _context_path = "scene" | ||||
| _property_type = bpy.types.Scene | _property_type = bpy.types.Scene | ||||
| if __name__ == "__main__": # only for live edit. | if __name__ == "__main__": # only for live edit. | ||||
| bpy.utils.register_module(__name__) | bpy.utils.register_module(__name__) | ||||
Same as above