mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Fix bug in Tadpoles example.
Fixes a bug where the segments array of a path was being changed directly, which caused the bounds to not be updated.
This commit is contained in:
parent
1f5af06e74
commit
d12c680be6
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@
|
|||
this.head.rotate(rot - this.lastRot);
|
||||
this.lastRot = rot;
|
||||
|
||||
var shortSegments = this.shortPath.segments;
|
||||
for (var i = 0; i < 3; i++)
|
||||
shortSegments[i] = segments[i].clone();
|
||||
this.shortPath.segments = segments.slice(0, 3);
|
||||
},
|
||||
|
||||
// We accumulate a new acceleration each time based on three rules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue