Panel BL_ variables configuration


I’m a bit confused with the BL_variables in a panel.
I’m doing a panel that should appear in the VIEW_3D/TOOL shelf but it should be visible in object AND edit mode, both. Well, If both modes at the same time are not possible, then only EDIT would be ok.
Right now it only works in objectmode. These are the variables I have:

class UserNormalTranslatorPanel(bpy.types.Panel):
“”“Creates a Panel in the Object properties window”""
bl_label = “User Normal Editor”
bl_idname = “OBJECT_PT_panel”
bl_space_type = ‘VIEW_3D’
bl_region_type = ‘TOOLS’
bl_context = “objectmode”

If I change the last one with “editmode” I don’t get an error but it simply doesn’t appear.

How can I fix this?


For complex criteria, add a poll-classmethod that returns whether the panel should show or not.