Commit b6c10de4 authored by Matthias Möller's avatar Matthias Möller

loaded properties are presistant per default

refs #2504

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1325 fdac6126-5c0c-442c-9429-916003d36597
parent 118ec2f1
......@@ -199,7 +199,10 @@ void assignCustomProperty(std::istream& _in, BaseImporter& _bi, Handle _h, const
//get/add property
typename Handle2Prop<T,Handle>::PropT prop;
if (!_bi.kernel()->get_property_handle(prop,_propName))
{
_bi.kernel()->add_property(prop,_propName);
_bi.kernel()->property(prop).set_persistent(true);
}
//read and assign
T in;
......@@ -211,7 +214,10 @@ void assignCustomProperty(std::istream& _in, BaseImporter& _bi, Handle _h, const
//get/add property
typename Handle2Prop<std::vector<T>,Handle>::PropT prop;
if (!_bi.kernel()->get_property_handle(prop,_propName))
{
_bi.kernel()->add_property(prop,_propName);
_bi.kernel()->property(prop).set_persistent(true);
}
//init vector
int numberOfValues;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment