IN: lua-tests(src\SpritePolygonTest\SpritePolygonTest.lua)
local info = cc.AutoPolygon:generatePolygon(filename) -line 100
local spp = cc.Sprite:create(info) -line 101
cc.Sprite:create issue an error
error:
cc.Sprite:create argument #2 is 'cc.PolygonInfo'; 'string' expected.
Program works find because cc.Sprite:create( cc.PolygonInfo ) is supported.
The problem is in file \cocos2d-x\cocos\scripting\lua-bindings\manual\cocos2d\lua_cocos2dx_manual.cpp
The function
lua_cocos2dx_Sprite_create test for a string argument and issue an error prior to testing for PolygonInfo
This looks like generated code so I do not know where the fix should be done.
Andre