diff --git a/rigify/ui.py b/rigify/ui.py
index e95e477487a3bc0fbf66b8c91460704ba4d3acaf..0e34ba420f3599f1fd6df8cd3f83640024ec5d2a 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -202,6 +202,10 @@ class VIEW3D_PT_tools_rigify_dev(bpy.types.Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'TOOLS'
 
+    @classmethod
+    def poll(cls, context):
+        return context.mode == 'EDIT_ARMATURE' or context.mode == 'EDIT_MESH'
+
     def draw(self, context):
         obj = context.active_object
         if obj != None: