diff --git a/app/src/lib/graph-interface/edges/Edge.svelte b/app/src/lib/graph-interface/edges/Edge.svelte index 529ca53..3d4cfc5 100644 --- a/app/src/lib/graph-interface/edges/Edge.svelte +++ b/app/src/lib/graph-interface/edges/Edge.svelte @@ -5,6 +5,7 @@ color: colors.edge.clone(), toneMapped: false, }); + $effect.root(() => { $effect(() => { appSettings.value.theme; @@ -12,8 +13,6 @@ }); }); - // const lineCache = new Map(); - const curve = new CubicBezierCurve( new Vector2(0, 0), new Vector2(0, 0), diff --git a/app/src/lib/runtime/runtime-executor.ts b/app/src/lib/runtime/runtime-executor.ts index 2c425d3..adfcd79 100644 --- a/app/src/lib/runtime/runtime-executor.ts +++ b/app/src/lib/runtime/runtime-executor.ts @@ -64,8 +64,10 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor { constructor( private registry: NodeRegistry, - // private cache?: SyncCache, - ) { } + private cache?: SyncCache, + ) { + this.cache = undefined; + } private async getNodeDefinitions(graph: Graph) { if (this.registry.status !== "ready") { @@ -194,10 +196,9 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor { ([key, input]) => { if (input.type === "seed") { if (settings["randomSeed"] === true) { - return Math.floor(Math.random() * 100000000); - } else { - return this.randomSeed; + this.randomSeed = Math.floor(Math.random() * 100000000); } + return this.randomSeed; } // If the input is linked to a setting, we use that value