support to handle changed types when reading dynamic properties

This commit is contained in:
wmayer
2018-03-14 17:20:03 +01:00
parent cd71d1bb25
commit 14bf380e03
2 changed files with 8 additions and 4 deletions

View File

@@ -437,12 +437,14 @@ void DynamicProperty::Restore(Base::XMLReader &reader)
#endif
}
else if (prop) {
Base::Console().Warning("%s: Overread data for property %s of type %s, expected type is %s\n",
pc->getTypeId().getName(), prop->getName(), prop->getTypeId().getName(), TypeName);
//Base::Console().Warning("%s: Overread data for property %s of type %s, expected type is %s\n",
// pc->getTypeId().getName(), prop->getName(), prop->getTypeId().getName(), TypeName);
pc->handleChangedPropertyType(reader, TypeName, prop);
}
else {
Base::Console().Warning("%s: No property found with name %s and type %s\n",
pc->getTypeId().getName(), PropName, TypeName);
//Base::Console().Warning("%s: No property found with name %s and type %s\n",
// pc->getTypeId().getName(), PropName, TypeName);
pc->handleChangedPropertyName(reader, TypeName, PropName);
}
}
reader.readEndElement("Property");