Toponaming/Part: Fix hashing, hasher mismatches, and adjust test results to match

This commit is contained in:
bgbsww
2024-04-15 18:23:00 -04:00
committed by Chris Hennes
parent 41bce2eaf4
commit a4dd600ec6
9 changed files with 670 additions and 188 deletions

View File

@@ -650,7 +650,7 @@ static TopoShape _getTopoShape(const App::DocumentObject* obj,
shape.resetElementMap();
shape.Tag = 0;
if ( shape.Hasher ) {
shape.Hasher->clear();
shape.Hasher = nullptr;
}
}
}
@@ -702,7 +702,7 @@ static TopoShape _getTopoShape(const App::DocumentObject* obj,
shape.resetElementMap();
shape.Tag = 0;
if ( shape.Hasher ) {
shape.Hasher->clear();
shape.Hasher = nullptr;
}
}
Py_DECREF(pyobj);
@@ -794,7 +794,7 @@ static TopoShape _getTopoShape(const App::DocumentObject* obj,
shape.resetElementMap();
shape.Tag = 0;
if ( shape.Hasher) {
shape.Hasher->clear();
shape.Hasher = nullptr;
}
}
return shape;
@@ -945,7 +945,7 @@ static TopoShape _getTopoShape(const App::DocumentObject* obj,
shape.resetElementMap();
shape.Tag = 0;
if ( shape.Hasher ) {
shape.Hasher->clear();
shape.Hasher = nullptr;
}
}
return shape;