Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 1,161 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| self.prop_unified_strength(row, context, brush, "strength", text="Strength") | self.prop_unified_strength(row, context, brush, "strength", text="Strength") | ||||
| self.prop_unified_strength(row, context, brush, "use_pressure_strength") | self.prop_unified_strength(row, context, brush, "use_pressure_strength") | ||||
| # XXX - TODO | # XXX - TODO | ||||
| # row = col.row(align=True) | # row = col.row(align=True) | ||||
| # row.prop(brush, "jitter", slider=True) | # row.prop(brush, "jitter", slider=True) | ||||
| # row.prop(brush, "use_pressure_jitter", toggle=True, text="") | # row.prop(brush, "use_pressure_jitter", toggle=True, text="") | ||||
| col.separator() | col.separator() | ||||
| toolsettings = context.tool_settings | |||||
| vpaint = toolsettings.vertex_paint | |||||
| col.prop(brush, "vertex_tool", text="Blend") | col.prop(brush, "vertex_tool", text="Blend") | ||||
| col.prop(brush, "use_accumulate") | |||||
| col.prop(brush, "use_alpha") | |||||
| col.separator() | col.separator() | ||||
| col.template_ID(settings, "palette", new="palette.new") | col.template_ID(settings, "palette", new="palette.new") | ||||
mont29: Styling (spaces) | |||||
| class TEXTURE_UL_texpaintslots(UIList): | class TEXTURE_UL_texpaintslots(UIList): | ||||
| def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): | def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): | ||||
| mat = data | mat = data | ||||
| if self.layout_type in {'DEFAULT', 'COMPACT'}: | if self.layout_type in {'DEFAULT', 'COMPACT'}: | ||||
| layout.prop(item, "name", text="", emboss=False, icon_value=icon) | layout.prop(item, "name", text="", emboss=False, icon_value=icon) | ||||
| if (not mat.use_nodes) and context.scene.render.engine in {'BLENDER_RENDER', 'BLENDER_GAME'}: | if (not mat.use_nodes) and context.scene.render.engine in {'BLENDER_RENDER', 'BLENDER_GAME'}: | ||||
| ▲ Show 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| wpaint = tool_settings.weight_paint | wpaint = tool_settings.weight_paint | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(wpaint, "use_normal") | row.prop(wpaint, "use_normal") | ||||
| row.prop(wpaint, "use_occlude") | |||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| row.prop(wpaint, "use_spray") | row.prop(wpaint, "use_spray") | ||||
| row.prop(wpaint, "use_group_restrict") | row.prop(wpaint, "use_group_restrict") | ||||
| obj = context.weight_paint_object | obj = context.weight_paint_object | ||||
| if obj.type == 'MESH': | if obj.type == 'MESH': | ||||
| mesh = obj.data | mesh = obj.data | ||||
| Show All 22 Lines | def draw(self, context): | ||||
| toolsettings = context.tool_settings | toolsettings = context.tool_settings | ||||
| vpaint = toolsettings.vertex_paint | vpaint = toolsettings.vertex_paint | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row() | row = col.row() | ||||
| # col.prop(vpaint, "mode", text="") | # col.prop(vpaint, "mode", text="") | ||||
| row.prop(vpaint, "use_normal") | row.prop(vpaint, "use_normal") | ||||
| col.prop(vpaint, "use_spray") | col.prop(vpaint, "use_spray") | ||||
| col.prop(vpaint, "use_occlude") | |||||
| self.unified_paint_settings(col, context) | self.unified_paint_settings(col, context) | ||||
| # Commented out because the Apply button isn't an operator yet, making these settings useless | # Commented out because the Apply button isn't an operator yet, making these settings useless | ||||
| #~ col.label(text="Gamma:") | #~ col.label(text="Gamma:") | ||||
| #~ col.prop(vpaint, "gamma", text="") | #~ col.prop(vpaint, "gamma", text="") | ||||
| #~ col.label(text="Multiply:") | #~ col.label(text="Multiply:") | ||||
| #~ col.prop(vpaint, "mul", text="") | #~ col.prop(vpaint, "mul", text="") | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||
Styling (spaces)