scripting: waitFor function
Bug #1051858 reported by
Khalid AlAjaji
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Alexander Wolf |
Bug Description
The WaitFor script function calculates the waiting time wrongly.
Ex:
core.setDate(
// wait for time 5 days later
core.waitFor(
// Now move view direction south and up
core.moveToAltA
Time difference between setDate and waitFor is 5 days and waitFor function treats it as 5 seconds.
Please see my question: https:/
This bug is old and I think it appeared after 0.10.4
Related branches
Changed in stellarium: | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: scripting |
Changed in stellarium: | |
milestone: | 0.12.0 → none |
Changed in stellarium: | |
status: | Opinion → Confirmed |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Default time speed for waitFor is one JD per second and example work correct. In really we have other "bug" - time not synchronized for scripts and for GUI.
If set other time speed (core.setTimeRa te()) then script will be work not correct.
Possible ways for solution: we can set time speed for waitFor as real time and remove time rate (set value for rate as 1).