mirror of
https://github.com/rive-app/rive-ios.git
synced 2026-01-18 17:11:28 +01:00
chore: Pass Lua VM from editor when decoding runtime File (#11458) f57124001d
The C++ runtime requires a ScriptingVM and lua_State to run scripts. Previously when a runtime File was built, we would always instance a ScriptingVM and lua_State. At runtime, this is required, however, when building the runtime in the editor, this resulted in additional objects being created that weren't needed. This PR passes the lua_State into File::import so that the file will only create the ScriptingVM once and either use the passed in lua_State or instance a new one if none is passed.
This commit is contained in:
@@ -1 +1 @@
|
||||
f3a89390cb428a5ea841d21de91f9cb2adc312df
|
||||
f57124001d4ee388c32a3ec0cd08e292fafc268d
|
||||
|
||||
Submodule submodules/rive-runtime updated: 6eaf71f485...155a726a9b
Reference in New Issue
Block a user