Hmm still not working for me. Here’s what I’m doing :
DzBoolProperty *onOffProp = new DzBoolProperty(onOffPropName, false, false, false);
onOffProp->setLabel("On/Off");
onOffProp->setPath(somePath);
onOffProp->setIsMappable(true);
node->addProperty(onOffProp );
After executing this code the property gets added to the node in question. After saving and reloading the scene the property is no longer present on the node. I’ve also tried explicitly calling onOffProp->setIsUserProperty(false) but no difference.
Note that I am calling addProperty from outside the node constructor (and from outside the node class definition altogether). The node in my test case is just a plain DzNode. Do properties have to be added from within the node class definition itself, and/or from the node constructor, in order to be persisted?