mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #997 from 2youyou2/graphics
fixed graphics canvas commands
This commit is contained in:
@@ -70,7 +70,8 @@ _p.rendering = function (ctx, scaleX, scaleY) {
|
||||
if (ctxCmd === 'clear') {
|
||||
cmds.splice(0, i+1);
|
||||
i = 0;
|
||||
return;
|
||||
l = cmds.length;
|
||||
continue;
|
||||
}
|
||||
else if (ctxCmd === 'moveTo' && endPath) {
|
||||
context.beginPath();
|
||||
|
||||
Reference in New Issue
Block a user