From 4d67a6b4ccb6ffc63ea31694de3e854974f02708 Mon Sep 17 00:00:00 2001 From: taches-ai Date: Sun, 27 Oct 2024 17:06:42 +0100 Subject: [PATCH] fix: correctly update scene's seed --- py/components/clothes.py | 2 +- py/scene.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 = []