fix: correctly update scene's seed

This commit is contained in:
taches-ai
2024-10-27 17:06:42 +01:00
parent 1ac972f912
commit 4d67a6b4cc
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -4,9 +4,9 @@ from ..node import Node
class Clothes(Node):
def __init__(self, seed=0, state="random", type="random"):
super().__init__(seed, data_file="clothes.toml")
self.state = state
self.type = type
super().__init__(seed, data_file="clothes.toml")
def build_prompt(self, seed):
self.seed = seed
+1
View File
@@ -63,6 +63,7 @@ class Scene(Node):
return inputs
def build_prompt(self, seed, **kwargs):
self.seed = seed
components = self.components
prompt = []