Skip to content

Commit 7b1a549

Browse files
[ui] grapheditor: Fix the unregister heavy process (closing meshroom with a substential graph could take almost a minute)
1 parent 1d89d80 commit 7b1a549

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

meshroom/ui/qml/GraphEditor/GraphEditor.qml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,16 +1590,11 @@ Item {
15901590

15911591
function unregisterAttributePin(attribute, pin) {
15921592
const attributeToDelegate = Object.assign({}, root._attributeToDelegate)
1593-
let updated = false
1594-
for (const key in attributeToDelegate) {
1595-
if (attributeToDelegate[key] === pin) {
1596-
delete attributeToDelegate[key]
1597-
updated = true
1598-
}
1599-
}
1600-
if (updated) {
1593+
if (attributeToDelegate[key] === pin) {
1594+
delete attributeToDelegate[key]
16011595
root._attributeToDelegate = attributeToDelegate
16021596
}
1597+
16031598
}
16041599

16051600
function boundingBox() {

0 commit comments

Comments
 (0)