📋 Metadata
- Author: roaoao
- Date: 2017-06-10 09:03:28
- Type:
answer - Reply to: post_00714
- Replies (1): post_00719
💬 Content
TeaCrab:
I was expecting the Poll Method to be able to resolve this by not displaying anything at all if context is incorrect.
Should be fixed in PME 1.13.6
TeaCrab:
Or better yet, it would be great to have a Panel Switcher, which given different conditions of the context, assigns different panels to be displayed.
You can display Popup Dialog by its name in Custom tab:
draw_menu("Camera Popup Dialog") if C.active_object and C.active_object.type == 'CAMERA' else draw_menu("Mesh Popup Dialog")