fix: variabel-bredde uden sektioner måles på AI-markører (Unrealistic _MD med fast 50 m) (v1.62.122)
This commit is contained in:
@@ -425,6 +425,9 @@ end
|
||||
-- grundbredden (læssevogn 2,4 m selv om den er sat til 40,8 m).
|
||||
local function variableWidth(object)
|
||||
if object.getVariableWorkWidth == nil then return nil end
|
||||
-- uden sektioner (fx vores _MD-udgave af Unrealistic med fast bredde) er AI-markørerne den rigtige bredde
|
||||
local spec = object.spec_variableWorkWidth
|
||||
if spec ~= nil and (type(spec.sections) ~= "table" or #spec.sections == 0) then return nil end
|
||||
local okLeft, left, _, leftValid = pcall(object.getVariableWorkWidth, object, true)
|
||||
local okRight, right, _, rightValid = pcall(object.getVariableWorkWidth, object)
|
||||
if okLeft and okRight and leftValid and rightValid and type(left) == "number" and type(right) == "number" then
|
||||
|
||||
Reference in New Issue
Block a user