Skip to content

Commit 5e4f5af

Browse files
authored
Merge pull request #976 from ecomfe/fix/morph-path
2 parents 00f7505 + acf3168 commit 5e4f5af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/svg/graphic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,13 @@ export function brushSVGPath(el: Path, scope: BrushScope) {
170170
builtinShpDef[0](shape, attrs, mul);
171171
}
172172
else {
173+
const needBuildPath = !el.path || el.shapeChanged();
173174
if (!el.path) {
174175
el.createPathProxy();
175176
}
176177
const path = el.path;
177178

178-
if (el.shapeChanged()) {
179+
if (needBuildPath) {
179180
path.beginPath();
180181
el.buildPath(path, el.shape);
181182
el.pathUpdated();

0 commit comments

Comments
 (0)