importJSON
function overwrites insert
method in path
with a variable.
#1392
Labels
importJSON
function overwrites insert
method in path
with a variable.
#1392
Description/Steps to reproduce
Create an empty path, check whether
path.insert
is a function (as it should be). Now, import a path usingpath.importJSON()
.path.insert
should still be a function, however, it's now a boolean variable assigned the value false. This bug breaks in particular the possibility of runningpath.divideAt()
on the imported path, or any other function that would requirepath.insert()
.Expected result
After path.importJSON(), the function path.insert should still exist, however, it's replaced by a boolean variable.
Additional information
The culprit is this part in paperjs's code:
arg.insert
is overwriting thepath.insert
function. Replacingarg.insert = false
byarg.insertFlag = false
, solves the issue of the overwrittenpath.insert
function. In particular, it is now possible to runpath.divideAt()
.Tested on Mac OS Sierra 10.12.6 (16G29), Chrome 57.0.2987.98 (64-bit).
The text was updated successfully, but these errors were encountered: