mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +00:00
lua: app.activeFrame returns a Frame object now
This commit is contained in:
parent
d32d8bf938
commit
2adfcf8829
@ -200,8 +200,8 @@ int App_get_activeFrame(lua_State* L)
|
||||
{
|
||||
app::Context* ctx = App::instance()->context();
|
||||
Site site = ctx->activeSite();
|
||||
if (site.frame())
|
||||
lua_pushinteger(L, site.frame()+1);
|
||||
if (site.sprite())
|
||||
push_sprite_frame(L, site.sprite(), site.frame());
|
||||
else
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user