Thread: WDL-OL
View Single Post
Old 05-03-2012, 10:56 AM   #97
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

I don't think you should rely on the GUI existing before SerializeState gets called.

If you need to pull values from the controls, test that the GUI exists and fill some defaults in if not. When you create your presets with MakePresetFromBlob() / MakePresetFromChunk() those presets should contain the serialized data that could come from the controls.

MakeDefaultPreset() previously didn't work at all with chunks (unless you override Un/SerializeParams) which it used to call
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote