Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_paint_common.py
| Show First 20 Lines • Show All 388 Lines • ▼ Show 20 Lines | def poll(cls, context): | ||||
| if brush.brush_capabilities.has_smooth_stroke: | if brush.brush_capabilities.has_smooth_stroke: | ||||
| return True | return True | ||||
| return False | return False | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| settings = self.paint_settings(context) | settings = self.paint_settings(context) | ||||
| brush = settings.brush | brush = settings.brush | ||||
| self.layout.prop(brush, "use_smooth_stroke", text="") | self.layout.prop(brush, "use_smooth_stroke", text=self.bl_label) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| settings = self.paint_settings(context) | settings = self.paint_settings(context) | ||||
| brush = settings.brush | brush = settings.brush | ||||
| ▲ Show 20 Lines • Show All 956 Lines • Show Last 20 Lines | |||||