diff --git a/cocos2d/core/graphics/graphics.js b/cocos2d/core/graphics/graphics.js index c0e21c63f7..66fc58faab 100644 --- a/cocos2d/core/graphics/graphics.js +++ b/cocos2d/core/graphics/graphics.js @@ -436,8 +436,9 @@ let Graphics = cc.Class({ } else { for (let i = 0, l = datas.length; i < l; i++) { - datas[i].dataLength = 0; - datas[i]._indices.length = 0; + let data = datas[i]; + data.vertexCount = data.indiceCount = data.dataLength = 0; + data._indices.length = 0; } } },