-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property Serialization mode is not remebered for dynamically added properties. #839
Comments
|
would it not be more correct to just serialize it? |
We do serialize it, but if the serialization mode is not set to |
Where do we serialize the serialization mode? |
Ahh, I did not realize you meant the serialization mode. But yes, that would be a solution as well I guess, probably the best one. |
This is still on my todo I think |
When loading a network with a processor having one or more dynamically added properties with serialization mode set to
All
, the properties recreated by the deserializer does not have the serialization mode set to All.For example: The parallel coordinates have a
DataFrameColormapProperty
. TheDataFrameColormapProperty
dynamically adds a bunch ofColormapProperty
and set them their serialization mode toAll
.inviwo/modules/dataframe/src/properties/dataframecolormapproperty.cpp
Lines 101 to 114 in 1f3aba2
When the network is saved and have been reloaded the serialization mode of the properties are
Default
which means the next time the network is saved information such as display name etc. will be lost.Suggestion: In
PropertyOwner
, when adding a property toownedProperties_
the serialization mode should be set toAll
. IMO, this makes sense since we need it for properties recreated by the deserializer to get, e.g, displayname correctThe text was updated successfully, but these errors were encountered: