@classmethod
def poll(cls, context):
    ob = context.object
    return ((ob and (ob.type == 'MESH')) and (context.engine in cls.COMPAT_ENGINES) and context.cloth)
@classmethod
def poll(cls, context):
    ob = context.object
    return ((ob and (ob.type == 'MESH')) and (context.engine in cls.COMPAT_ENGINES) and context.cloth)