WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
371 stars 28 forks source link

Bug fix with lua garbage collector #76

Closed Trey2k closed 1 year ago

Trey2k commented 1 year ago

This PR fixes #75, the issue was caused when lua invoked mt_Object's __gc meta method for garbage collection. Sometimes it would be called during an none optimal time. Instead this PR makes all object live the life of the LuaAPI object.