Skip to content

Fixes camera switching error.

This just fixes a relatively harmless set of errors which would occur when switching from a scene with a canvas editor to a scene with a spatial editor. Since the camera is updated in the process loop, calls to update the camera in the renderer would get called before the camera position had a chance to be calculated, resulting in some errors being printed to the console, and this simply address it by pre-emptively updating the camera whenever the spatial editor's visibility is updated.

Merge request reports