I test in testCpp to use CCScale9Sprite::createWithSpriteFrameName with specific capInsets and i’ve got a CCRect assert on
CCAssert(width >= 0.0f && height >= 0.0f, “width and height of Rect must not less than 0.”);
You can reproduce this issue by replacing :
CCScale9Sprite backgroundButton = CCScale9Sprite::create;
CCSpriteFrameCache cache = CCSpriteFrameCache::sharedSpriteFrameCache();
CCScale9Sprite *backgroundButton = CCScale9Sprite::createWithSpriteFrameName(“menuCircleWhite.png”, CCRect(2,2,27,27));
in CCControlButtonTest.cpp line 84
It works fine with no capInsets specified, the assert come when I try to specify one.