Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_paint_common.py
| Show First 20 Lines • Show All 1,017 Lines • ▼ Show 20 Lines | |||||
| # Used in both the View3D toolbar and texture properties | # Used in both the View3D toolbar and texture properties | ||||
| def brush_texture_settings(layout, brush, sculpt): | def brush_texture_settings(layout, brush, sculpt): | ||||
| tex_slot = brush.texture_slot | tex_slot = brush.texture_slot | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| # map_mode | # map_mode | ||||
| if sculpt: | |||||
| layout.prop(tex_slot, "map_mode", text="Mapping") | layout.prop(tex_slot, "map_mode", text="Mapping") | ||||
| else: | |||||
| layout.prop(tex_slot, "tex_paint_map_mode", text="Mapping") | |||||
| layout.separator() | layout.separator() | ||||
| if tex_slot.map_mode == 'STENCIL': | if tex_slot.map_mode == 'STENCIL': | ||||
| if brush.texture and brush.texture.type == 'IMAGE': | if brush.texture and brush.texture.type == 'IMAGE': | ||||
| layout.operator("brush.stencil_fit_image_aspect") | layout.operator("brush.stencil_fit_image_aspect") | ||||
| layout.operator("brush.stencil_reset_transform") | layout.operator("brush.stencil_reset_transform") | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||