Added workaround for async screenshots.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 18s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 18s
This commit is contained in:
parent
ef798ffe5c
commit
48de748ae8
2 changed files with 17 additions and 9 deletions
|
|
@ -32,7 +32,15 @@ proc night_flight_save_screenshot {{prefix_id 0}} {
|
|||
} else {
|
||||
set file_prefix "$night_flight_prefix$night_flight_seperator"
|
||||
}
|
||||
screenshot -prefix $file_prefix
|
||||
global throttle
|
||||
global speed
|
||||
set old_throttle [set throttle]
|
||||
set old_speed [set speed]
|
||||
set throttle on
|
||||
set speed 100
|
||||
after time 1 "screenshot -prefix $file_prefix"
|
||||
after time 2 "set throttle $old_throttle"
|
||||
after time 2 "set speed $old_speed"
|
||||
return "mb::save flight screenshot"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue