diff options
Diffstat (limited to 'lua/clever_f/feedback_service.lua')
| -rw-r--r-- | lua/clever_f/feedback_service.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/clever_f/feedback_service.lua b/lua/clever_f/feedback_service.lua index b6552ef..9703502 100644 --- a/lua/clever_f/feedback_service.lua +++ b/lua/clever_f/feedback_service.lua @@ -324,11 +324,17 @@ function FeedbackService:build_persistent(specification) if specification.motion_plan.target_plan ~= specification.target_plan then fail("persistent feedback must reuse the movement TargetPlan", 2) end + local descriptor = specification.descriptor + or specification.motion_plan.descriptor + local endpoint_policy = specification.endpoint_policy + or specification.motion_plan.endpoint_policy return { context = context, anchor = domain.Position.coerce(specification.anchor), target_plan = specification.target_plan, motion_plan = specification.motion_plan, + descriptor = domain.Descriptor.from_string(descriptor), + endpoint_policy = domain.EndpointPolicy.from_string(endpoint_policy), window = specification.window, } end |
