diff --git a/src/Viewer/CameraGroup.cxx b/src/Viewer/CameraGroup.cxx index e122b9c0e..3ec5f6853 100644 --- a/src/Viewer/CameraGroup.cxx +++ b/src/Viewer/CameraGroup.cxx @@ -970,6 +970,9 @@ void reloadCompositors(CameraGroup *cgroup) { cgroup->_viewer->getViewerBase()->stopThreading(); + // Prevent the camera render orders increasing indefinitely with each reload + Compositor::resetOrderOffset(); + for (auto &info : cgroup->_cameras) { // Ignore the GUI camera if (info->flags & CameraInfo::GUI)