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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user