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:
authormeta-androcto <meta.androcto1@gmail.com>2017-01-22 06:14:46 +0300
committermeta-androcto <meta.androcto1@gmail.com>2017-01-22 06:14:46 +0300
commitdf36a4195487459ad14339411d284c5bb6269491 (patch)
treeadd10666a31cf998d1803b3fe4537b05e27e72e9 /object_print3d_utils/ui.py
parent509bdb24e2f9598e41ad6f1d0d55dcd2aa1a4f23 (diff)
print3d utils:restrict tab/panel context edit/object modes T50357
Diffstat (limited to 'object_print3d_utils/ui.py')
-rw-r--r--object_print3d_utils/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/object_print3d_utils/ui.py b/object_print3d_utils/ui.py
index c556df69..14a27bf5 100644
--- a/object_print3d_utils/ui.py
+++ b/object_print3d_utils/ui.py
@@ -39,7 +39,7 @@ class Print3DToolBar:
@classmethod
def poll(cls, context):
obj = context.active_object
- return (obj and obj.type == 'MESH')
+ return obj and obj.type == 'MESH' and context.mode in {'OBJECT','EDIT_MESH'}
@staticmethod
def draw_report(layout, context):