1
0
Fork 0

Merge pull request #3821 from freesewing/inherit-freeid

fix(core): Proposal to fix #3781
This commit is contained in:
Joost De Cock 2023-04-16 09:26:26 +02:00 committed by GitHub
commit fbd7c13dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()