Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Rachinskiy <mikhail.rachinskiy@gmail.com>2019-09-25 14:13:47 +0300
committerMikhail Rachinskiy <mikhail.rachinskiy@gmail.com>2019-09-25 14:13:47 +0300
commit71cf3711881416223b047ec6e8314d8b71122496 (patch)
treeac8be1419c06c531fcafa1aa6f2d70ffc21fb717 /object_print3d_utils
parent93f36af1d4c2b0594623a539df1b37ca12074c1b (diff)
Print3D: remove Select Non Manifold tool from report
There is no reason why it should be there.
Diffstat (limited to 'object_print3d_utils')
-rw-r--r--object_print3d_utils/ui.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/object_print3d_utils/ui.py b/object_print3d_utils/ui.py
index 3549660c..114459c9 100644
--- a/object_print3d_utils/ui.py
+++ b/object_print3d_utils/ui.py
@@ -48,24 +48,19 @@ class VIEW3D_PT_print3d(Panel):
info = report.info()
if info:
- obj = context.edit_object
- show_select = False
+ is_edit = context.edit_object is not None
layout.label(text="Report")
box = layout.box()
col = box.column()
for i, (text, data) in enumerate(info):
- if obj and data and data[1]:
+ if is_edit and data and data[1]:
bm_type, bm_array = data
col.operator("mesh.print3d_select_report", text=text, icon=self._type_to_icon[bm_type],).index = i
- show_select = True
else:
col.label(text=text)
- if show_select:
- layout.operator("mesh.select_non_manifold")
-
def draw(self, context):
layout = self.layout
@@ -97,8 +92,7 @@ class VIEW3D_PT_print3d(Panel):
row = col.row(align=True)
row.operator("mesh.print3d_check_overhang", text="Overhang")
row.prop(print_3d, "angle_overhang", text="")
- col = layout.column()
- col.operator("mesh.print3d_check_all", text="Check All")
+ layout.operator("mesh.print3d_check_all", text="Check All")
self.draw_report(context)
@@ -121,10 +115,9 @@ class VIEW3D_PT_print3d_cleanup(Panel):
row = col.row(align=True)
row.operator("mesh.print3d_clean_distorted", text="Distorted")
row.prop(print_3d, "angle_distort", text="")
- col = layout.column()
- col.operator("mesh.print3d_clean_non_manifold", text="Make Manifold")
+ layout.operator("mesh.print3d_clean_non_manifold", text="Make Manifold")
# XXX TODO
- # col.operator("mesh.print3d_clean_thin", text="Wall Thickness")
+ # layout.operator("mesh.print3d_clean_thin", text="Wall Thickness")
layout.label(text="Scale To")
row = layout.row(align=True)