Update visibleobjects.cpp