Skip to content

Commit

Permalink
fix(init): enable ignore_invalid for msgpack
Browse files Browse the repository at this point in the history
Needed to prevent errors when packing glm polygons and such.
  • Loading branch information
thelindat committed Jul 26, 2023
1 parent 8f0a8b3 commit 89b9016
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ local status = export.hasLoaded()

if status ~= true then error(status, 2) end

-- Ignore invalid types during msgpack.pack (e.g. userdata)
msgpack.setoption('ignore_invalid', true)

-----------------------------------------------------------------------------------------------
-- Module
-----------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 89b9016

Please sign in to comment.