On 28/01/2015 at 08:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13+
Platform: Windows ;
Language(s) : C++ ;
---------
_<_n_<_o_>__
I have a lot of data which are inside a GeUserArea sub class, the data is dynamic "lots of pointers, vectors of pointers, ..."
example:
class myNodeUserArea : public GeUserArea
{
private:
std::vector<mNode*> nodes;
std::vector<mWire*> wires;
....
}
I'm not sure where to "put" these data so they can be saved/loaded easily, for example in the iCustomGui class, also I'm not sure how the TriState<> is loading and saving data
right now I can add my custom data type from userdata, display it with my custom gui, modify the user area stuff, once I change any thing in the ui the user area becomes empty!! "as if I just created it without any modification"