Files
rive-cpp/.rive_head
philter 155a726a9b 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.

Co-authored-by: Philip Chung <philterdesign@gmail.com>
2026-01-15 20:22:41 +00:00

2 lines
41 B
Plaintext

f57124001d4ee388c32a3ec0cd08e292fafc268d