Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col = row.column() | col = row.column() | ||||
| col.template_list("MESH_UL_vcols", "vcols", me, "vertex_colors", me.vertex_colors, "active_index", rows=2) | col.template_list("MESH_UL_vcols", "vcols", me, "vertex_colors", me.vertex_colors, "active_index", rows=2) | ||||
| col = row.column(align=True) | col = row.column(align=True) | ||||
| col.operator("mesh.vertex_color_add", icon='ADD', text="") | col.operator("mesh.vertex_color_add", icon='ADD', text="") | ||||
| col.operator("mesh.vertex_color_remove", icon='REMOVE', text="") | col.operator("mesh.vertex_color_remove", icon='REMOVE', text="") | ||||
| class DATA_PT_remesh(MeshButtonsPanel, Panel): | |||||
| bl_label = "Remesh" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| col = layout.column() | |||||
| mesh = context.mesh | |||||
| col.prop(mesh, "remesh_voxel_size") | |||||
| col.prop(mesh, "remesh_smooth_normals") | |||||
| col.prop(mesh, "remesh_reproject_paint_mask") | |||||
| col.operator("object.voxel_remesh", text="Voxel Remesh") | |||||
| class DATA_PT_customdata(MeshButtonsPanel, Panel): | class DATA_PT_customdata(MeshButtonsPanel, Panel): | ||||
| bl_label = "Geometry Data" | bl_label = "Geometry Data" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 37 Lines | classes = ( | ||||
| DATA_PT_vertex_groups, | DATA_PT_vertex_groups, | ||||
| DATA_PT_shape_keys, | DATA_PT_shape_keys, | ||||
| DATA_PT_uv_texture, | DATA_PT_uv_texture, | ||||
| DATA_PT_vertex_colors, | DATA_PT_vertex_colors, | ||||
| DATA_PT_face_maps, | DATA_PT_face_maps, | ||||
| DATA_PT_normals, | DATA_PT_normals, | ||||
| DATA_PT_normals_auto_smooth, | DATA_PT_normals_auto_smooth, | ||||
| DATA_PT_texture_space, | DATA_PT_texture_space, | ||||
| DATA_PT_remesh, | |||||
| DATA_PT_customdata, | DATA_PT_customdata, | ||||
| DATA_PT_custom_props_mesh, | DATA_PT_custom_props_mesh, | ||||
| ) | ) | ||||
| if __name__ == "__main__": # only for live edit. | if __name__ == "__main__": # only for live edit. | ||||
| from bpy.utils import register_class | from bpy.utils import register_class | ||||
| for cls in classes: | for cls in classes: | ||||
| register_class(cls) | register_class(cls) | ||||