1.8.0 scripts and undo problem
4 posts • Page 1 of 1
1.8.0 scripts and undo problem
1.8.0
After undo in the middle of simulation values of sim.time and sim.tick became 0 for a while (1-2 frames).
If I set some script for background color depended on sim.time for example it works not right way...
How to reproduce:
1) Run sim for a while and stop it
2) Type in console "App.Background.skyColor = {sim.time == 0 ? {Print("Zero sim.time!")}:{}; [1,1,1,.6]}"
3) Run sim, draw box, press undo
4) Look in console...
Zero sim.time!
Zero sim.time!
It's really mess with my scripts
After undo in the middle of simulation values of sim.time and sim.tick became 0 for a while (1-2 frames).
If I set some script for background color depended on sim.time for example it works not right way...
How to reproduce:
1) Run sim for a while and stop it
2) Type in console "App.Background.skyColor = {sim.time == 0 ? {Print("Zero sim.time!")}:{}; [1,1,1,.6]}"
3) Run sim, draw box, press undo
4) Look in console...
Zero sim.time!
Zero sim.time!
It's really mess with my scripts
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: 1.8.0 scripts and undo problem
Nice find, i've got a question. How do you find so many bugs? Are you specifically looking for them, or do you come across them when you are making things??
-

kilebantick - Posts: 1267
- Joined: Tue Sep 01, 2009 9:50 am
Re: 1.8.0 scripts and undo problem
Almost all of them was found during scene building.
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: 1.8.0 scripts and undo problem
When undoing the scene and simulation is first cleared before being set to the undo-state. I'm not gonna rewrite that behavior right now.
Emil Ernerfeldt, lead developer
- emilk
- Posts: 616
- Joined: Mon Aug 31, 2009 11:01 am
- Location: Umeå, Sweden
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests




