mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Have boolean operation result inherit styles from the left-hand item in the operation.
Closes #445.
This commit is contained in:
parent
8edcf3b219
commit
66b1087d33
1 changed files with 5 additions and 2 deletions
|
@ -147,8 +147,11 @@ PathItem.inject(new function() {
|
|||
_path1.remove();
|
||||
if (_path2)
|
||||
_path2.remove();
|
||||
// And then, we are done.
|
||||
return result.reduce();
|
||||
// See if the CompoundPath can be reduced to just a simple Path.
|
||||
result = result.reduce();
|
||||
// Copy over the left-hand item's style and we're done.
|
||||
result.setStyle(path1._style);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue