mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
[lua] Fix context used in App.useTool()
This commit is contained in:
parent
0c1e08138e
commit
8b5133b4c0
@ -433,7 +433,7 @@ int App_useTool(lua_State* L)
|
||||
// Do the tool loop
|
||||
type = lua_getfield(L, 1, "points");
|
||||
if (type == LUA_TTABLE) {
|
||||
InlineCommandExecution inlineCmd(UIContext::instance());
|
||||
InlineCommandExecution inlineCmd(ctx);
|
||||
|
||||
std::unique_ptr<tools::ToolLoop> loop(
|
||||
create_tool_loop_for_script(ctx, site, params));
|
||||
|
Loading…
Reference in New Issue
Block a user