AP_Scripting: treat zero loops as 1
This commit is contained in:
parent
6c785715fa
commit
6b0b3b1a05
@ -710,7 +710,7 @@ function climbing_circle(radius, height, bank_angle, arg4)
|
||||
end
|
||||
|
||||
function loop(radius, bank_angle, num_loops, arg4)
|
||||
if not num_loops then
|
||||
if not num_loops or num_loops <= 0 then
|
||||
num_loops = 1
|
||||
end
|
||||
return make_paths("loop", {
|
||||
|
Loading…
Reference in New Issue
Block a user