Compare commits
2 Commits
a1ea56093c
...
6229becfd8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6229becfd8
|
||
|
|
af944cefaa
|
@@ -5,6 +5,7 @@
|
|||||||
color: colors.edge.clone(),
|
color: colors.edge.clone(),
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
$effect.root(() => {
|
$effect.root(() => {
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
appSettings.value.theme;
|
appSettings.value.theme;
|
||||||
@@ -12,8 +13,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// const lineCache = new Map<number, BufferGeometry>();
|
|
||||||
|
|
||||||
const curve = new CubicBezierCurve(
|
const curve = new CubicBezierCurve(
|
||||||
new Vector2(0, 0),
|
new Vector2(0, 0),
|
||||||
new Vector2(0, 0),
|
new Vector2(0, 0),
|
||||||
|
|||||||
@@ -405,12 +405,12 @@
|
|||||||
if (typeof graphState.activeSocket.index === "number") {
|
if (typeof graphState.activeSocket.index === "number") {
|
||||||
graphState.addMenuPosition = [
|
graphState.addMenuPosition = [
|
||||||
graphState.mousePosition[0],
|
graphState.mousePosition[0],
|
||||||
graphState.mousePosition[1] - 3,
|
graphState.mousePosition[1] - 25 / graphState.cameraPosition[2],
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
graphState.addMenuPosition = [
|
graphState.addMenuPosition = [
|
||||||
graphState.mousePosition[0] - 20,
|
graphState.mousePosition[0] - 155 / graphState.cameraPosition[2],
|
||||||
graphState.mousePosition[1] - 3,
|
graphState.mousePosition[1] - 25 / graphState.cameraPosition[2],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -64,8 +64,10 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private registry: NodeRegistry,
|
private registry: NodeRegistry,
|
||||||
// private cache?: SyncCache<Int32Array>,
|
private cache?: SyncCache<Int32Array>,
|
||||||
) { }
|
) {
|
||||||
|
this.cache = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
private async getNodeDefinitions(graph: Graph) {
|
private async getNodeDefinitions(graph: Graph) {
|
||||||
if (this.registry.status !== "ready") {
|
if (this.registry.status !== "ready") {
|
||||||
@@ -194,10 +196,9 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
|
|||||||
([key, input]) => {
|
([key, input]) => {
|
||||||
if (input.type === "seed") {
|
if (input.type === "seed") {
|
||||||
if (settings["randomSeed"] === true) {
|
if (settings["randomSeed"] === true) {
|
||||||
return Math.floor(Math.random() * 100000000);
|
this.randomSeed = Math.floor(Math.random() * 100000000);
|
||||||
} else {
|
|
||||||
return this.randomSeed;
|
|
||||||
}
|
}
|
||||||
|
return this.randomSeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the input is linked to a setting, we use that value
|
// If the input is linked to a setting, we use that value
|
||||||
|
|||||||
Reference in New Issue
Block a user