DzNodeProperty not saving values
shoei321
Posts: 113
I've created a class that extends DzNode and has DzNode property on it. When I assign the property a value (another node in the scene), then save and reload the scene, the value is lost. Other custom properties (Float/Enum/etc) on the same object persist just fine, but the DzNodeProperty does not. I've also tried DzNumericNodeProperty with the same results.
Any idea why this might be happening? I'm experimented making the property a user property, private property, changed its path, etc, nothing seems to make the property value persist across save/reload.
Thanks
Comments
Does the log file says it can not find something or does it just say nothing special when loading your scene.
Or you can just have a look (via text editing) at your .duf scene file to see if it is written somewhere in it. If not this is not saved. If yes this is not loaded. This is not the solution but already a clue.
I guess some people here will have much more precise answer.
Its working for me: I changed the sample MyCustomNode to use a DzNodeProperty instead of DzFloatProperty and it saves and loads fine. Attached is a screenshot of the CustomNode selected and its nodeProperty having the value after saving and then loading the scene.
Here is the code changes in the cpp/