Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 619 Lines • ▼ Show 20 Lines | class VIEW3D_PT_tools_brush_texture(Panel, View3DPaintPanel): | ||||
| bl_context = ".paint_common" | bl_context = ".paint_common" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_settings" | bl_parent_id = "VIEW3D_PT_tools_brush_settings" | ||||
| bl_label = "Texture" | bl_label = "Texture" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| settings = cls.paint_settings(context) | settings = cls.paint_settings(context) | ||||
| return (settings and settings.brush and | brush = settings.brush | ||||
| return (settings and brush and brush.image_tool != 'CLONE' and | |||||
| (context.sculpt_object or context.image_paint_object or context.vertex_paint_object)) | (context.sculpt_object or context.image_paint_object or context.vertex_paint_object)) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| settings = self.paint_settings(context) | settings = self.paint_settings(context) | ||||
| brush = settings.brush | brush = settings.brush | ||||
| ▲ Show 20 Lines • Show All 1,606 Lines • Show Last 20 Lines | |||||