Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Context not available. | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| col = layout.column() | row = layout.row() | ||||
| mesh = context.mesh | mesh = context.mesh | ||||
| col.prop(mesh, "remesh_voxel_size") | row.prop(mesh, "remesh_mode", text="Mode", expand=True) | ||||
| col.prop(mesh, "remesh_smooth_normals") | col = layout.column() | ||||
| col.prop(mesh, "remesh_preserve_paint_mask") | if (mesh.remesh_mode == 'VOXEL'): | ||||
| col.operator("object.voxel_remesh", text="Voxel Remesh") | col.prop(mesh, "remesh_voxel_size") | ||||
| col.prop(mesh, "remesh_smooth_normals") | |||||
| col.prop(mesh, "remesh_preserve_paint_mask") | |||||
| col.operator("object.voxel_remesh", text="Voxel Remesh") | |||||
brecht: `Quadriflow Remesh` -> `QuadriFlow Remesh`, or just remove the text because it's the same.
The… | |||||
| else: | |||||
| col.operator("object.quadriflow_remesh", text="QuadriFlow Remesh") | |||||
Done Inline ActionsAdd , expand=True so it's easy to see the available options at a glance. brecht: Add `, expand=True` so it's easy to see the available options at a glance. | |||||
| class DATA_PT_customdata(MeshButtonsPanel, Panel): | class DATA_PT_customdata(MeshButtonsPanel, Panel): | ||||
| bl_label = "Geometry Data" | bl_label = "Geometry Data" | ||||
| Context not available. | |||||
Quadriflow Remesh -> QuadriFlow Remesh, or just remove the text because it's the same.
The Remesh panel contents is confusing now. It's not clear that the properties only apply to voxel remesh. One improvement would be to rename "Voxel Size" to "Edge Length", and then use the mesh properties as default values for the QuadriFlow operator properties.