mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
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>
2 lines
41 B
Plaintext
2 lines
41 B
Plaintext
f57124001d4ee388c32a3ec0cd08e292fafc268d
|