From 9f007be88944e7194e9a7631cd58f89dfe4a5b2b Mon Sep 17 00:00:00 2001 From: samytichadou Date: Thu, 4 Apr 2019 00:02:39 +0200 Subject: [PATCH] get rid of redundant tool panel in blender --- .../Apps/Blender/Integration/PandoraInit.py | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/Pandora/Plugins/Apps/Blender/Integration/PandoraInit.py b/Pandora/Plugins/Apps/Blender/Integration/PandoraInit.py index 699f792..d6b1cc2 100644 --- a/Pandora/Plugins/Apps/Blender/Integration/PandoraInit.py +++ b/Pandora/Plugins/Apps/Blender/Integration/PandoraInit.py @@ -103,30 +103,6 @@ def execute(self, context): Pandora.openSettings() return {'FINISHED'} -if bpy.app.version < (2,80,0): - Region = "TOOLS" -else: - Region = "UI" - -class PandoraPanel(bpy.types.Panel): - bl_label = "Pandora Tools" - bl_idname = "pandoraToolsPanel" - bl_space_type = 'VIEW_3D' - bl_region_type = Region - bl_category = "Pandora" - - def draw(self, context): - layout = self.layout - - row = layout.row() - row.operator("object.pandora_submitter") - - row = layout.row() - row.operator("object.pandora_renderhandler") - - row = layout.row() - row.operator("object.pandora_settings") - def register(): if bpy.app.background: @@ -155,7 +131,6 @@ def register(): bpy.utils.register_class(PandoraSubmitter) bpy.utils.register_class(PandoraRenderHandler) bpy.utils.register_class(PandoraSettings) - bpy.utils.register_class(PandoraPanel) # qapp.exec_() except Exception as e: @@ -170,4 +145,3 @@ def unregister(): bpy.utils.unregister_class(PandoraSubmitter) bpy.utils.unregister_class(PandoraRenderHandler) bpy.utils.unregister_class(PandoraSettings) - bpy.utils.unregister_class(PandoraPanel) \ No newline at end of file