Skip to content

Commit

Permalink
Immediately update the camera if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Apr 8, 2018
1 parent adfb32e commit a7f8eee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orthographic/camera.script
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a7f8eee

Please sign in to comment.