Made ActorFrame:SetDrawByZPosition return self to lua so function chaining works with it.

This commit is contained in:
Kyzentun Keeslala
2015-10-07 15:44:23 -06:00
parent f441d3a6f7
commit 772096151f
+1 -1
View File
@@ -648,7 +648,7 @@ public:
return 1;
}
static int GetNumChildren( T* p, lua_State *L ) { lua_pushnumber( L, p->GetNumChildren() ); return 1; }
static int SetDrawByZPosition( T* p, lua_State *L ) { p->SetDrawByZPosition( BArg(1) ); return 1; }
static int SetDrawByZPosition( T* p, lua_State *L ) { p->SetDrawByZPosition( BArg(1) ); COMMON_RETURN_SELF; }
static int SetDrawFunction( T* p, lua_State *L )
{
if(lua_isnil(L,1))