Preserve legacy seed control ordering
This commit is contained in:
+30
-2
@@ -13925,8 +13925,6 @@ def smoke_node_utility_registration() -> None:
|
||||
-1,
|
||||
"random",
|
||||
-1,
|
||||
"fixed",
|
||||
222,
|
||||
"auto",
|
||||
123,
|
||||
"auto",
|
||||
@@ -13939,6 +13937,8 @@ def smoke_node_utility_registration() -> None:
|
||||
-1,
|
||||
"fixed",
|
||||
999,
|
||||
"fixed",
|
||||
222,
|
||||
)
|
||||
parsed_seed_control = json.loads(seed_control_config)
|
||||
_expect(parsed_seed_control.get("category_seed") == 0, "Seed Control fixed mode did not clamp negative seed")
|
||||
@@ -13955,6 +13955,34 @@ def smoke_node_utility_registration() -> None:
|
||||
f"content={parsed_seed_control['content_seed']}" in seed_control_summary,
|
||||
"Seed Control summary lost random resolved seed value",
|
||||
)
|
||||
legacy_seed_control_config, _legacy_seed_control_summary = seed_control().build(
|
||||
"fixed",
|
||||
-1,
|
||||
"follow_main",
|
||||
-1,
|
||||
"random",
|
||||
-1,
|
||||
"auto",
|
||||
123,
|
||||
"auto",
|
||||
456,
|
||||
"fixed",
|
||||
777,
|
||||
"follow_main",
|
||||
888,
|
||||
"auto",
|
||||
321,
|
||||
"fixed",
|
||||
999,
|
||||
)
|
||||
legacy_seed_control = json.loads(legacy_seed_control_config)
|
||||
_expect(legacy_seed_control.get("clothing_seed") == -1, "Legacy Seed Control call should leave clothing seed unset")
|
||||
_expect(legacy_seed_control.get("person_seed") == 123, "Legacy Seed Control call shifted person seed")
|
||||
_expect(legacy_seed_control.get("scene_seed") == 456, "Legacy Seed Control call shifted scene seed")
|
||||
_expect(legacy_seed_control.get("pose_seed") == 777, "Legacy Seed Control call shifted pose seed")
|
||||
_expect(legacy_seed_control.get("role_seed") == -1, "Legacy Seed Control call shifted role seed")
|
||||
_expect(legacy_seed_control.get("expression_seed") == 321, "Legacy Seed Control call shifted expression seed")
|
||||
_expect(legacy_seed_control.get("composition_seed") == 999, "Legacy Seed Control call shifted composition seed")
|
||||
|
||||
seed_locker = sxcp_nodes.NODE_CLASS_MAPPINGS["SxCPSeedLocker"]
|
||||
locker_inputs = seed_locker.INPUT_TYPES().get("required") or {}
|
||||
|
||||
Reference in New Issue
Block a user