This project is read-only.

ViewModel value changes between driver and editortemplate

Topics: Writing modules
Oct 25, 2011 at 3:13 PM
Edited Oct 25, 2011 at 3:13 PM

I have a custom part with a 2 bool members, when creating one in the admin area;  I fill in values in the editor and post them back the viewmodel looks good in my driver, and in the database, but when it get's to my editor template the bool values have changed (they are always true).

I have tried to step through this with the debugger but I can't see when the value is changing. Does anyone know where I should be dropping a breakpoint to see this or has anyone seen this happen? 

Oct 25, 2011 at 3:15 PM
Edited Oct 25, 2011 at 3:22 PM

Correction only one: a bool named Calculated is always true, unless another Active is false. Frakin weird.

Oct 25, 2011 at 3:57 PM
Edited Oct 25, 2011 at 3:58 PM

And now I feel dumb.


Calculated = part.Active

I love a good typo.