refactor: remove unneeded random var in node

This commit is contained in:
2025-12-02 16:59:29 +01:00
parent 2b4c81f557
commit 4878d02705
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,8 @@
z = 2,
}: Props = $props();
const zOffset = (node.tmp?.random || 0) * 0.5;
// If we dont have a random offset, all nodes becom visible at the same zoom level -> stuttering
const zOffset = Math.random() - 0.5;
const zLimit = 2 - zOffset;
const parameters = Object.entries(node?.tmp?.type?.inputs || {}).filter(

View File

@@ -15,7 +15,6 @@ export type Node = {
tmp?: {
depth?: number;
mesh?: any;
random?: number;
parents?: Node[];
children?: Node[];
inputNodes?: Record<string, Node>;