diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 975f968b1b3..4994fac0b7d 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -468,14 +468,18 @@ class DATA_PT_remesh(MeshButtonsPanel, Panel): def draw(self, context): layout = self.layout layout.use_property_split = True - col = layout.column() + row = layout.row() mesh = context.mesh - 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") - + row.prop(mesh, "remesh_mode", text="Mode", expand=True) + col = layout.column() + if (mesh.remesh_mode == 'VOXEL'): + 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") + else: + col.operator("object.quadriflow_remesh", text="QuadriFlow Remesh") class DATA_PT_customdata(MeshButtonsPanel, Panel): bl_label = "Geometry Data" |