From a7f8eee0183ccf0dfca58304736fe29ec53d637a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Sun, 8 Apr 2018 23:04:54 +0200 Subject: [PATCH] Immediately update the camera if enabled --- orthographic/camera.script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orthographic/camera.script b/orthographic/camera.script index c0a0c6a..9c58a2d 100644 --- a/orthographic/camera.script +++ b/orthographic/camera.script @@ -36,6 +36,10 @@ local USE_PROJECTION = hash("use_projection") function init(self) camera.init(go.get_id(), msg.url(), { zoom = self.zoom }) + if self.enabled then + camera.update(go.get_id(), 0) + camera.send_view_projection(go.get_id()) + end end