diff options
author | lijenstina <lijenstina@gmail.com> | 2016-11-12 17:55:34 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2016-11-12 17:55:34 +0300 |
commit | 3b9cbaa44efb03e768219edb2d0427d478233691 (patch) | |
tree | f01ae3b8318286536912e1d23ec1702efc28f9f1 /object_print3d_utils/ui.py | |
parent | 7df41339ae89c3281cb8d81f0b9d09c11aa266ae (diff) |
Print3D: cleanup unused variables and imports, fix unused operator
Pep8 cleanup
Remove unused variables and imports
Print3DCleanThin was registered even though it was just a stub
It would crash when called from the search menu
(TODO was not commented out)
Added an info message about multiple object selection - only the active
object is checked
Diffstat (limited to 'object_print3d_utils/ui.py')
-rw-r--r-- | object_print3d_utils/ui.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/object_print3d_utils/ui.py b/object_print3d_utils/ui.py index 2bcf4d55..c556df69 100644 --- a/object_print3d_utils/ui.py +++ b/object_print3d_utils/ui.py @@ -24,6 +24,7 @@ import bmesh from bpy.types import Panel from . import report + class Print3DToolBar: bl_label = "Print3D" bl_space_type = 'VIEW_3D' @@ -65,7 +66,6 @@ class Print3DToolBar: scene = context.scene print_3d = scene.print_3d - obj = context.object # TODO, presets @@ -130,12 +130,14 @@ class Print3DToolBar: Print3DToolBar.draw_report(layout, context) + # So we can have a panel in both object mode and editmode class Print3DToolBarObject(Panel, Print3DToolBar): bl_category = "3D Printing" bl_idname = "MESH_PT_print3d_object" bl_context = "objectmode" + class Print3DToolBarMesh(Panel, Print3DToolBar): bl_category = "3D Printing" bl_idname = "MESH_PT_print3d_mesh" |