Merge pull request #3821 from freesewing/inherit-freeid
fix(core): Proposal to fix #3781
This commit is contained in:
commit
fbd7c13dba
1 changed files with 2 additions and 0 deletions
|
@ -295,6 +295,7 @@ Part.prototype.__getIdClosure = function () {
|
|||
|
||||
/**
|
||||
* Copies point/path/snippet data from part orig into this
|
||||
* Also sets the freeId
|
||||
*
|
||||
* @private
|
||||
* @param {object} orig - The original part to inject into this
|
||||
|
@ -307,6 +308,7 @@ Part.prototype.__inject = function (orig) {
|
|||
}
|
||||
}
|
||||
|
||||
this.freeId = orig.freeId
|
||||
for (let i in orig.points) this.points[i] = orig.points[i].clone()
|
||||
for (let i in orig.paths) {
|
||||
this.paths[i] = orig.paths[i].clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue