Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
6.03.00037 Fix for very long implements #6652
Browse files Browse the repository at this point in the history
Also fixing #6781, do not reset tool offset when starting, only on attach.
  • Loading branch information
pvaiko committed Feb 7, 2021
1 parent ac8bbf7 commit ef801ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toolManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ function courseplay:updateOnAttachOrDetach(vehicle)
end

courseplay:resetTools(vehicle)

-- reset tool offset to the preconfigured value if exists
vehicle.cp.settings.toolOffsetX:setToConfiguredValue()

end

--- Set up tool configuration after something is attached or detached
Expand All @@ -61,9 +65,6 @@ function courseplay:resetTools(vehicle)
courseplay.hud:setReloadPageOrder(vehicle, -1, true);

courseplay:calculateWorkWidth(vehicle, true);

-- reset tool offset to the preconfigured value if exists
vehicle.cp.settings.toolOffsetX:setToConfiguredValue()
end;

function courseplay:isAttachedMixer(workTool)
Expand Down

0 comments on commit ef801ce

Please sign in to comment.