Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Show First 20 Lines • Show All 1,183 Lines • ▼ Show 20 Lines | class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel): | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| tool_settings = context.tool_settings.image_paint | tool_settings = context.tool_settings.image_paint | ||||
| brush = tool_settings.brush | brush = tool_settings.brush | ||||
| tex_slot = brush.texture_slot | |||||
| col = layout.column() | col = layout.column() | ||||
| col.template_ID_preview(brush, "texture", new="texture.new", rows=3, cols=8) | col.template_ID_preview(tex_slot, "texture", new="texture.new", rows=3, cols=8) | ||||
| brush_texture_settings(col, brush, 0) | brush_texture_settings(col, brush, 0) | ||||
| class IMAGE_PT_tools_mask_texture(Panel, BrushButtonsPanel, TextureMaskPanel): | class IMAGE_PT_tools_mask_texture(Panel, BrushButtonsPanel, TextureMaskPanel): | ||||
| bl_context = ".paint_common_2d" | bl_context = ".paint_common_2d" | ||||
| bl_parent_id = "IMAGE_PT_paint_settings" | bl_parent_id = "IMAGE_PT_paint_settings" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| ▲ Show 20 Lines • Show All 461 Lines • Show Last 20 Lines | |||||