Merge branch 'master' into User/Document/Feature_level_units_selection_#7746

This commit is contained in:
AgCaliva
2023-09-25 22:58:23 -03:00
committed by GitHub
1116 changed files with 111507 additions and 90989 deletions

View File

@@ -239,6 +239,23 @@ void PropertyContainer::handleChangedPropertyType(DocumentReader &reader, const
PropertyData PropertyContainer::propertyData;
void PropertyContainer::beforeSave() const
{
std::map<std::string, Property*> Map;
getPropertyMap(Map);
for (auto& entry : Map) {
auto prop = entry.second;
if (!prop->testStatus(Property::PropDynamic)
&& (prop->testStatus(Property::Transient)
|| ((getPropertyType(prop) & Prop_Transient) != 0))) {
// Nothing
}
else {
prop->beforeSave();
}
}
}
void PropertyContainer::Save (Base::Writer &writer) const
{
std::map<std::string,Property*> Map;
@@ -257,8 +274,9 @@ void PropertyContainer::Save (Base::Writer &writer) const
{
transients.push_back(prop);
it = Map.erase(it);
}else
} else {
++it;
}
}
writer.incInd(); // indentation for 'Properties Count'