-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different behaviour after monarch update to 3.4.0 #81
Comments
Any guesstimates, when someone can take a look at this? :) |
When exactly are you calling |
I call monarch.show without a callback and in popup collection:
|
Also I have noticed that if send set_time_step x2 times, then pausing works. |
Well, the thing is that the timestep of the screen below the popup is set by Monarch when the screen below the popup has been disabled (release input, focus lost etc). This happens after the code in your script has run, so whatever you put there will be replaced by the timestep set by Monarch. My recommendation is that you set the timestep in the callback to monarch.show():
But why aren't you using the "Timestep below popup" option to pause anything under the popup? |
Show callback did the trick! As I remember I have already tried that approach and it did not worked for me, maybe I was doing something wrong. Regarding "Timestep below popup" thanks for suggestion, I would like to control, when it needs to pause the scene or not for specific popups. As I understand with this option enabled all popups will be paused. |
Previously I showed popup and during popup initialisation I paused the animation of main collection by sending:
msg.post(mainCollectionUrl, "set_time_step", { factor = 0, mode = 1 })
After updating library from 3.3.0 to 3.4.0 I see that pausing does not works.
Tested with only using dependency version change, with 3.3.0 works without issues as expected.
The text was updated successfully, but these errors were encountered: