support to handle changed types when reading dynamic properties
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user