Post #711: The “Poll Method” is a great addition to the addon, but I don’t seem to be able

📋 Metadata

  • Author: TeaCrab
  • Date: 2017-06-09 02:48:04
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_00712

🏷️ Tags

popup-dialog poll-method beginner unsolved

  • Popup Dialog Editor
  • Poll Method

💬 Content

The “Poll Method” is a great addition to the addon, but I don’t seem to be able to get it to work at all in the popup dialog.

I set the popup to pie mode, and have the poll of this:
return C.active_object and C.active_object.type == ‘MESH’

Which if the active_object I selected is not of type:‘MESH’, the whole popup dialog shouldn’t be displayed.

But it does display regardless of what I actually select.

Maybe I interpreted this wrong, please help.


🔗 View on Blender Artists