Force-spawn the requested portrait role and close the hooded close-up
Full build / Import + headless tests (push) Successful in 46s
Full build / Full desktop build + optional release (push) Skipped

This commit is contained in:
zwitschi committed 2026-11-04 09:09:44 +01:00
1 parent 3084145031
commit 60f389c16b
2 files changed
+14 -2

No files matched your search

+8
View File
@@ -208,6 +208,14 @@ func _begin_stage() -> void:
_apply(night_swaps)
_queue = (stage["shots"] as Array).duplicate()
_shot_frames = 0
# An explicit --portrait-type asks for one role up close, but trespasser/
# threat/crisis roles are event-driven and do not appear in the routine day
# crowd. Spawn one directly so the hooded/winter close-up can be staged.
if _portrait_type >= 0:
var portrait_profile = gm.selected_scenario.profile_for(_portrait_type)
if portrait_profile != null:
gm.call("_spawn_npc", portrait_profile, "roam", "portrait_subject",
{"kind": "authored"})
print("capture_realism: stage %s at %d ms" % [stage["name"], Time.get_ticks_msec()])
func _run_queue(delta: float) -> void: