Fix Krea2 POV prompt restore wiring
This commit is contained in:
@@ -351,13 +351,15 @@ class SxCPKrea2POVPromptRestore:
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"hardcore_position_config": (SXCP_HARDCORE_POSITION_CONFIG,),
|
||||
"restore_clothing_detail": ("BOOLEAN", {"default": True}),
|
||||
"restore_face_expression_detail": ("BOOLEAN", {"default": True}),
|
||||
"restore_body_touch_detail": ("BOOLEAN", {"default": False}),
|
||||
"restore_camera_presentation_detail": ("BOOLEAN", {"default": False}),
|
||||
"relax_non_pose_axis_conflicts": ("BOOLEAN", {"default": True}),
|
||||
}
|
||||
},
|
||||
"optional": {
|
||||
"hardcore_position_config": (SXCP_HARDCORE_POSITION_CONFIG,),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = (SXCP_HARDCORE_POSITION_CONFIG, "STRING")
|
||||
@@ -367,12 +369,12 @@ class SxCPKrea2POVPromptRestore:
|
||||
|
||||
def build(
|
||||
self,
|
||||
hardcore_position_config,
|
||||
restore_clothing_detail=True,
|
||||
restore_face_expression_detail=True,
|
||||
restore_body_touch_detail=False,
|
||||
restore_camera_presentation_detail=False,
|
||||
relax_non_pose_axis_conflicts=True,
|
||||
hardcore_position_config="",
|
||||
):
|
||||
config = parse_hardcore_position_config(hardcore_position_config)
|
||||
axes: list[str] = []
|
||||
@@ -392,6 +394,8 @@ class SxCPKrea2POVPromptRestore:
|
||||
axes.extend(self.CAMERA_PRESENTATION_AXES)
|
||||
config["allow_interaction"] = True
|
||||
config["restore_prompt_axes"] = normalize_restore_prompt_axes(axes)
|
||||
if config["restore_prompt_axes"]:
|
||||
config["enabled"] = True
|
||||
config["relax_non_pose_axis_conflicts"] = bool(relax_non_pose_axis_conflicts)
|
||||
config["summary"] = hardcore_position_summary(config)
|
||||
return json.dumps(config, ensure_ascii=True, sort_keys=True), str(config["summary"])
|
||||
|
||||
Reference in New Issue
Block a user