1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Prevent cleaning graph state on undo/redo (#2255)

* Prevent cleaning graph state on undo/redo

* Remove pause rendering due to LG bug
This commit is contained in:
pythongosssss
2023-12-11 17:33:35 +00:00
committed by GitHub
parent 57926635e8
commit ab93abd4b2
2 changed files with 16 additions and 16 deletions

View File

@@ -1559,9 +1559,12 @@ export class ComfyApp {
/**
* Populates the graph with the specified workflow data
* @param {*} graphData A serialized graph object
* @param { boolean } clean If the graph state, e.g. images, should be cleared
*/
async loadGraphData(graphData) {
this.clean();
async loadGraphData(graphData, clean = true) {
if (clean !== false) {
this.clean();
}
let reset_invalid_values = false;
if (!graphData) {