fix: switch most remaining render calls to queueRender (#7024)

* chore: remove render call from procedure blocks

* chore: have workspace queue renders when unhiding

* chore: remove forced rendering from flyouts

* chore: change mutators to use queueing

* chore: change shadows to use queueing

* chore: add comments about icon rendering
This commit is contained in:
Beka Westberg
2023-05-09 16:57:11 -07:00
committed by GitHub
parent 39cdd8a67a
commit af991f5e1b
7 changed files with 9 additions and 18 deletions

View File

@@ -756,9 +756,6 @@ const PROCEDURE_CALL_COMMON = {
this.quarkConnections_ = {};
this.quarkIds_ = [];
}
// Switch off rendering while the block is rebuilt.
const savedRendered = this.rendered;
this.rendered = false;
// Update the quarkConnections_ with existing connections.
for (let i = 0; i < this.arguments_.length; i++) {
const input = this.getInput('ARG' + i);
@@ -798,11 +795,6 @@ const PROCEDURE_CALL_COMMON = {
}
}
}
// Restore rendering and show the changes.
this.rendered = savedRendered;
if (this.rendered) {
this.render();
}
},
/**
* Modify this block to have the correct number of arguments.