mirror of https://github.com/axmolengine/axmol.git
Fix the error that the default value of `a` should be 255 when converting a color3b_table into cocos2d::Color4B,
This commit is contained in:
parent
e3463d23a8
commit
9aadc2a993
|
@ -630,7 +630,7 @@ bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue, const char* funcNa
|
|||
|
||||
lua_pushstring(L, "a");
|
||||
lua_gettable(L,lo);
|
||||
outValue->a = lua_isnil(L,-1) ? 0 : lua_tonumber(L,-1);
|
||||
outValue->a = lua_isnil(L,-1) ? 255 : lua_tonumber(L,-1);
|
||||
lua_pop(L,1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue