Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_modifier.py
| Show First 20 Lines • Show All 652 Lines • ▼ Show 20 Lines | def MULTIRES(self, layout, ob, md): | ||||
| col.enabled = ob.mode != 'EDIT' | col.enabled = ob.mode != 'EDIT' | ||||
| col.operator("object.multires_subdivide", text="Subdivide") | col.operator("object.multires_subdivide", text="Subdivide") | ||||
| col.operator("object.multires_higher_levels_delete", text="Delete Higher") | col.operator("object.multires_higher_levels_delete", text="Delete Higher") | ||||
| col.operator("object.multires_reshape", text="Reshape") | col.operator("object.multires_reshape", text="Reshape") | ||||
| col.operator("object.multires_base_apply", text="Apply Base") | col.operator("object.multires_base_apply", text="Apply Base") | ||||
| col.prop(md, "uv_smooth", text="") | col.prop(md, "uv_smooth", text="") | ||||
| col.prop(md, "show_only_control_edges") | col.prop(md, "show_only_control_edges") | ||||
| col.prop(md, "use_creases") | |||||
| layout.separator() | layout.separator() | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| if md.is_external: | if md.is_external: | ||||
| row.operator("object.multires_external_pack", text="Pack External") | row.operator("object.multires_external_pack", text="Pack External") | ||||
| row.label() | row.label() | ||||
| ▲ Show 20 Lines • Show All 361 Lines • ▼ Show 20 Lines | def SUBSURF(self, layout, ob, md): | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Options:") | col.label(text="Options:") | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.active = (not show_adaptive_options) or (not ob.cycles.use_adaptive_subdivision) | sub.active = (not show_adaptive_options) or (not ob.cycles.use_adaptive_subdivision) | ||||
| sub.prop(md, "uv_smooth", text="") | sub.prop(md, "uv_smooth", text="") | ||||
| col.prop(md, "show_only_control_edges") | col.prop(md, "show_only_control_edges") | ||||
| col.prop(md, "use_creases") | |||||
| if show_adaptive_options and ob.cycles.use_adaptive_subdivision: | if show_adaptive_options and ob.cycles.use_adaptive_subdivision: | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.scale_y = 0.6 | col.scale_y = 0.6 | ||||
| col.separator() | col.separator() | ||||
| col.label(text="Final Dicing Rate:") | col.label(text="Final Dicing Rate:") | ||||
| col.separator() | col.separator() | ||||
| ▲ Show 20 Lines • Show All 1,179 Lines • Show Last 20 Lines | |||||