Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Show First 20 Lines • Show All 462 Lines • ▼ Show 20 Lines | |||||
| class DATA_PT_sculpt_vertex_colors(MeshButtonsPanel, Panel): | class DATA_PT_sculpt_vertex_colors(MeshButtonsPanel, Panel): | ||||
| bl_label = "Sculpt Vertex Colors" | bl_label = "Sculpt Vertex Colors" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return context.preferences.experimental.use_sculpt_vertex_colors | return super().poll(context) and context.preferences.experimental.use_sculpt_vertex_colors | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| me = context.mesh | me = context.mesh | ||||
| row = layout.row() | row = layout.row() | ||||
| col = row.column() | col = row.column() | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||