diff --git a/py/components/clothes.py b/py/components/clothes.py index 82d034d..4e6d94f 100644 --- a/py/components/clothes.py +++ b/py/components/clothes.py @@ -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 diff --git a/py/scene.py b/py/scene.py index 314ff01..22d0328 100644 --- a/py/scene.py +++ b/py/scene.py @@ -63,6 +63,7 @@ class Scene(Node): return inputs def build_prompt(self, seed, **kwargs): + self.seed = seed components = self.components prompt = []