Remove hasher check and migrate CAM files

This commit is contained in:
drwho495
2026-02-04 19:00:24 -06:00
committed by Chris Hennes
parent 6a1da227cd
commit 72b1076788
14 changed files with 1 additions and 22 deletions

View File

@@ -1300,16 +1300,7 @@ std::string PropertyComplexGeoData::getElementMapVersion(bool) const
if (!data) {
return std::string();
}
auto owner = freecad_cast<DocumentObject*>(getContainer());
std::ostringstream ss;
if (owner && owner->getDocument() && data->hasElementMap() && data->getElementMapSize() && owner->getDocument()->getStringHasher() == data->Hasher) {
ss << "1.";
}
else {
ss << "0.";
}
ss << data->getElementMapVersion();
return ss.str();
return data->getElementMapVersion();
}
bool PropertyComplexGeoData::checkElementMapVersion(const char* ver) const
@@ -1318,18 +1309,6 @@ bool PropertyComplexGeoData::checkElementMapVersion(const char* ver) const
if (!data) {
return false;
}
auto owner = freecad_cast<DocumentObject*>(getContainer());
std::ostringstream ss;
const char* prefix;
if (owner && owner->getDocument() && owner->getDocument()->getStringHasher() == data->Hasher) {
prefix = "1.";
}
else {
prefix = "0.";
}
if (!boost::starts_with(ver, prefix)) {
return true;
}
return data->checkElementMapVersion(ver + 2);
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.