def updateBlockAffordances(polyData=None):

    for obj in om.getObjects():
        if isinstance(obj, BoxAffordanceItem):
            if obj.getProperty('Name') in 'refit':
                om.removeFromObjectModel(obj)

    for obj in om.getObjects():
        if isinstance(obj, BoxAffordanceItem):
            updateBlockFit(obj, polyData)
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/updateBlockAffordances/swapped operands of `in`