mirror of https://github.com/axmolengine/axmol.git
terrain lua bindings
This commit is contained in:
parent
39a6f1e8f1
commit
e8d853934b
|
@ -319,10 +319,10 @@ void terraindata_to_luaval(lua_State* L,const cocos2d::Terrain::TerrainData& inV
|
||||||
lua_rawset(L, -3);
|
lua_rawset(L, -3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nullptr != inValue._alphaMapSrc)
|
if (!inValue._alphaMapSrc.empty())
|
||||||
{
|
{
|
||||||
lua_pushstring(L, "_alphaMapSrc");
|
lua_pushstring(L, "_alphaMapSrc");
|
||||||
lua_pushstring(L, inValue._alphaMapSrc);
|
lua_pushstring(L, inValue._alphaMapSrc.c_str());
|
||||||
lua_rawset(L, -3);
|
lua_rawset(L, -3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue