1.9.7 scripted world values lost on undo

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

1.9.7 scripted world values lost on undo

Postby Kilinich » Sat Jul 02, 2011 12:26 pm

Bug introduced in 1.9.x (in 1.8.5 everything fine)
how to reproduce:

type in console
Code: Select all
scene.my.color := {[1,1,1,sim.time % 1]};
app.background.skyColor = {scene.my.color}

run sim
draw box and undo it
sky color change script lost :(

-- Warning: Failed to evaluate: scene.my.color, Cannot find identifier "color" in "my"
-- Warning: Caught Exception: Not a real, source\script\Attributes.hpp:167: void script::TAttrib<class math::TVector4<double> >::CalcValueFromObject
void)
-- Warning: App.Background.skyColor was bound to bad type. Restoring to last known value.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: 1.9.7 scripted world values lost on undo

Postby Kilinich » Tue Jul 05, 2011 3:32 pm

Emil, I know you don't like to fix thyme problems but please... one more time... :D
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests