mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix drawing of selected bounds for Path.
This commit is contained in:
parent
0d98727328
commit
82029652c8
1 changed files with 4 additions and 1 deletions
|
@ -324,7 +324,10 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
if (item.drawSelected)
|
||||
item.drawSelected(ctx, mx);
|
||||
if (item._boundsSelected)
|
||||
Item.drawSelectedBounds(item._getBounds(), ctx, mx);
|
||||
// We need to call the internal _getBounds, to get non-
|
||||
// transformed bounds.
|
||||
Item.drawSelectedBounds(item._getBounds('getBounds'),
|
||||
ctx, mx);
|
||||
}
|
||||
}
|
||||
ctx.restore();
|
||||
|
|
Loading…
Reference in a new issue