t2d addProtectedField - what marks fields "dirty"?
by Mario Hros · in Torque Developer Network · 05/16/2012 (7:54 am) · 0 replies
Hi,
in t2dSceneObject::initPersistFields() there are many fields but only some of them are saved (e.g. after the scene is saved from TGB).
It looks like that it saves only those fields, which were modified by setter.
How the engine knows what fields are changed?
I have added a new field and would like to "unset" the other one when this is set -> when I set A I want to unset B so that after saving it in TGB, only A will be saved.
Thanks for the info,
Mario
in t2dSceneObject::initPersistFields() there are many fields but only some of them are saved (e.g. after the scene is saved from TGB).
It looks like that it saves only those fields, which were modified by setter.
How the engine knows what fields are changed?
I have added a new field and would like to "unset" the other one when this is set -> when I set A I want to unset B so that after saving it in TGB, only A will be saved.
Thanks for the info,
Mario