print3d utils:restrict tab/panel context edit/object modes T50357

This commit is contained in:
Brendon Murphy 2017-01-22 14:14:46 +11:00
parent 509bdb24e2
commit df36a41954
1 changed files with 1 additions and 1 deletions

View File

@ -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):