We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8de061 commit 5e95bbdCopy full SHA for 5e95bbd
orthographic/camera.lua
@@ -218,7 +218,12 @@ end
218
-- @param camera_id
219
function M.final(camera_id)
220
assert(camera_id, "You must provide a camera id")
221
- cameras[camera_id] = nil
+ -- check that a new camera with the same id but from a different go hasn't been
222
+ -- replacing the camera that is being unregistered
223
+ -- if this is the case we simply ignore the call to final()
224
+ if cameras[camera_id].url ~= msg.url() then
225
+ cameras[camera_id] = nil
226
+ end
227
end
228
229
--- Update a camera
0 commit comments