Make scene layer random seeds reproducible

This commit is contained in:
2026-07-01 15:53:07 +02:00
parent 39782ce843
commit 38979a79a1
3 changed files with 154 additions and 2 deletions
-2
View File
@@ -446,8 +446,6 @@ def _layer_seed_options_json(
if combine_mode == "replace_layer":
items = [item for item in _seed_option_items(seed_options) if item.get("layer") != layer]
resolved_seed = max(0, min(0xFFFFFFFF, int(seed)))
if seed_mode == "random":
resolved_seed = random.SystemRandom().randint(0, 0xFFFFFFFF)
items.append(
{
"layer": layer,