Evas filters: Set state.next to nil when not in transition

This is what the doc says and makes more sense.
That was some kind of inverted logic.
This commit is contained in:
Jean-Philippe Andre 2015-07-23 20:07:36 +09:00
parent c78b466139
commit ff6dbb17e3
1 changed files with 5 additions and 5 deletions

View File

@ -2616,16 +2616,16 @@ _filter_program_state_set(Evas_Filter_Program *pgm)
lua_setfield(L, -2, "name");
lua_setfield(L, -2, "cur");
}
lua_newtable(L); // "next"
{
if (pgm->state.next.name)
if (pgm->state.next.name)
{
lua_newtable(L); // "next"
{
SETFIELD("value", pgm->state.next.value);
lua_pushstring(L, pgm->state.next.name);
lua_setfield(L, -2, "name");
}
lua_setfield(L, -2, "next");
}
lua_setfield(L, -2, "next");
}
lua_newtable(L); // "text"
{
SETCOLOR("outline", JOINC(text.outline));