Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_modifier.py
| Show First 20 Lines • Show All 884 Lines • ▼ Show 20 Lines | def SUBSURF(self, layout, ob, md): | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Options:") | col.label(text="Options:") | ||||
| col.prop(md, "use_subsurf_uv") | col.prop(md, "use_subsurf_uv") | ||||
| col.prop(md, "show_only_control_edges") | col.prop(md, "show_only_control_edges") | ||||
| if hasattr(md, "use_opensubdiv"): | if hasattr(md, "use_opensubdiv"): | ||||
| col.prop(md, "use_opensubdiv") | col.prop(md, "use_opensubdiv") | ||||
| engine = bpy.context.scene.render.engine | |||||
| if engine == "CYCLES" and bpy.context.scene.cycles.feature_set == "EXPERIMENTAL": | |||||
| col.prop(ob.cycles, "use_cycles_subdivision", text="Cycles Subdivision") | |||||
brecht: I think ideally we could arrange the UI something like this:
```
Viewport:
- Levels
Render… | |||||
| if ob.cycles.use_cycles_subdivision: | |||||
| col.prop(ob.cycles, "dicing_rate") | |||||
| def SURFACE(self, layout, ob, md): | def SURFACE(self, layout, ob, md): | ||||
| layout.label(text="Settings are inside the Physics tab") | layout.label(text="Settings are inside the Physics tab") | ||||
| def UV_PROJECT(self, layout, ob, md): | def UV_PROJECT(self, layout, ob, md): | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Image:") | col.label(text="Image:") | ||||
| ▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines | |||||
I think ideally we could arrange the UI something like this:
You could also check here if the modifier is the last modifier, to grey out or hide these options when they have no effect.
It would be good if we could do this in the addon somehow as well, instead of modifying the Blender code, but I'm not sure how at the moment.