mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Switch back to using allowNull for gradient highlight, now that it works.
This commit is contained in:
parent
d929c3177c
commit
5489f7f496
1 changed files with 1 additions and 3 deletions
|
@ -236,9 +236,7 @@ new function() {
|
|||
gradient.type = 'radial';
|
||||
origin = getPoint(svg, 'cx', 'cy');
|
||||
destination = origin.add(getValue(svg, 'r'), 0);
|
||||
highlight = getPoint(svg, 'fx', 'fy');
|
||||
if (highlight.isZero())
|
||||
highlight = null;
|
||||
highlight = getPoint(svg, 'fx', 'fy', true);
|
||||
} else {
|
||||
origin = getPoint(svg, 'x1', 'y1');
|
||||
destination = getPoint(svg, 'x2', 'y2');
|
||||
|
|
Loading…
Reference in a new issue