Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Show First 20 Lines • Show All 458 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.operator("mesh.vertex_color_remove", icon='REMOVE', text="") | col.operator("mesh.vertex_color_remove", icon='REMOVE', text="") | ||||
| 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 | |||||
| def poll(cls, context): | |||||
| return 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 All 28 Lines | def draw(self, context): | ||||
| col.prop(mesh, "remesh_voxel_adaptivity") | col.prop(mesh, "remesh_voxel_adaptivity") | ||||
| col.prop(mesh, "use_remesh_fix_poles") | col.prop(mesh, "use_remesh_fix_poles") | ||||
| col.prop(mesh, "use_remesh_smooth_normals") | col.prop(mesh, "use_remesh_smooth_normals") | ||||
| col = layout.column(heading="Preserve") | col = layout.column(heading="Preserve") | ||||
| col.prop(mesh, "use_remesh_preserve_volume", text="Volume") | col.prop(mesh, "use_remesh_preserve_volume", text="Volume") | ||||
| col.prop(mesh, "use_remesh_preserve_paint_mask", text="Paint Mask") | col.prop(mesh, "use_remesh_preserve_paint_mask", text="Paint Mask") | ||||
| col.prop(mesh, "use_remesh_preserve_sculpt_face_sets", text="Face Sets") | col.prop(mesh, "use_remesh_preserve_sculpt_face_sets", text="Face Sets") | ||||
| if context.preferences.experimental.use_sculpt_vertex_colors: | |||||
| col.prop(mesh, "use_remesh_preserve_vertex_colors", text="Vertex Colors") | col.prop(mesh, "use_remesh_preserve_vertex_colors", text="Vertex Colors") | ||||
| col.operator("object.voxel_remesh", text="Voxel Remesh") | col.operator("object.voxel_remesh", text="Voxel Remesh") | ||||
| else: | else: | ||||
| col.operator("object.quadriflow_remesh", text="QuadriFlow Remesh") | col.operator("object.quadriflow_remesh", text="QuadriFlow Remesh") | ||||
| class DATA_PT_customdata(MeshButtonsPanel, Panel): | class DATA_PT_customdata(MeshButtonsPanel, Panel): | ||||
| bl_label = "Geometry Data" | bl_label = "Geometry Data" | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||