@@ -576,13 +576,14 @@ end
576
576
local activate_endpoint = function (note , tie_mod , placement , direction , for_endpoint , for_pageview , tie_prefs , tie_placement_prefs )
577
577
local active_check_func = for_endpoint and tie_mod .IsEndPointActive or tie_mod .IsStartPointActive
578
578
if active_check_func (tie_mod ) then
579
- return
579
+ return false
580
580
end
581
581
local for_tieend = not tie_mod :IsStartTie ()
582
582
local connect = tie .calc_connection_code (note , placement , direction , for_endpoint , for_tieend , for_pageview , tie_prefs )
583
583
local xoffset , yoffset = calc_prefs_offset_for_endpoint (note , tie_prefs , tie_placement_prefs , placement , for_endpoint , for_tieend , for_pageview )
584
584
local activation_func = for_endpoint and tie_mod .ActivateEndPoint or tie_mod .ActivateStartPoint
585
585
activation_func (tie_mod , direction == finale .TIEMODDIR_OVER , connect , xoffset , yoffset )
586
+ return true
586
587
end
587
588
588
589
--[[
@@ -604,8 +605,11 @@ function tie.activate_endpoints(note, tie_mod, for_pageview, tie_prefs)
604
605
local tie_placement_prefs = tie_prefs :CreateTiePlacementPrefs ()
605
606
local direction = tie .calc_direction (note , tie_mod , tie_prefs )
606
607
local lplacement , rplacement = tie .calc_placement (note , tie_mod , for_pageview , direction , tie_prefs )
607
- activate_endpoint (note , tie_mod , lplacement , direction , false , for_pageview , tie_prefs , tie_placement_prefs )
608
- activate_endpoint (note , tie_mod , rplacement , direction , true , for_pageview , tie_prefs , tie_placement_prefs )
608
+ local lactivated = activate_endpoint (note , tie_mod , lplacement , direction , false , for_pageview , tie_prefs , tie_placement_prefs )
609
+ local ractivated = activate_endpoint (note , tie_mod , rplacement , direction , true , for_pageview , tie_prefs , tie_placement_prefs )
610
+ if lactivated and ractivated then
611
+ tie_mod :LocalizeFromPreferences ()
612
+ end
609
613
end
610
614
611
615
return tie
0 commit comments