I want to create addon that convert curve object to mesh object, so poll function is checking if the selected object is curve. The code is some kind like this:
def poll(cls, context): # check if curve is selected obj = context.active_object return obj and obj.type == 'CURVE'
The problem using this pool is if I run the operator, the properties of the operator doesn’t show up in bottom left corner, like in picture below.
If I don’t use the poll, it will be showed up like this.
Maybe it’s because the context is immediately fails because of the pool. I really want to add few properties in my operator but I don’t want to accidentally convert already mesh object.
Anyone know how to get around this problem?