Try hiding and unhiding the object in the view. Here’s a hack I did with Python which could easily be ported to C.