mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +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
|
// Do the tool loop
|
||||||
type = lua_getfield(L, 1, "points");
|
type = lua_getfield(L, 1, "points");
|
||||||
if (type == LUA_TTABLE) {
|
if (type == LUA_TTABLE) {
|
||||||
InlineCommandExecution inlineCmd(UIContext::instance());
|
InlineCommandExecution inlineCmd(ctx);
|
||||||
|
|
||||||
std::unique_ptr<tools::ToolLoop> loop(
|
std::unique_ptr<tools::ToolLoop> loop(
|
||||||
create_tool_loop_for_script(ctx, site, params));
|
create_tool_loop_for_script(ctx, site, params));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user