1
0
Fork 0

Merge branch 'develop' of github.com:freesewing/freesewing into develop

This commit is contained in:
joostdecock 2022-08-25 13:56:10 +02:00
commit 12e2a5319a
1818 changed files with 4379 additions and 5904 deletions

View file

@ -416,7 +416,20 @@ Part.prototype.setCutOnFold = function (p1, p2) {
}
Part.prototype.isEmpty = function() {
return Object.keys(this.paths).length === 0 && Object.keys(this.snippets).length === 0
if (Object.keys(this.snippets).length > 0) return false
if (Object.keys(this.paths).length > 0) {
for (var p in this.paths) {
if (this.paths[p].render && this.paths[p].length()) return false
}
}
for (var p in this.points) {
if (this.points[p].attributes.get('data-text')) return false
if (this.points[p].attributes.get('data-circle')) return false
}
return true
}
export default Part