Toponaming shapeprotector Nullify() check (#12177)
* Moved the check inside the Nullify() method. --------- Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
This commit is contained in:
committed by
GitHub
parent
78173fa790
commit
2ac19a9699
@@ -4042,9 +4042,11 @@ TopoShape &TopoShape::makeFace(const std::vector<TopoShape> &shapes, const char
|
||||
return *this;
|
||||
}
|
||||
|
||||
TopoShape &TopoShape::makeRefine(const TopoShape &shape, const char *op, bool no_fail) {
|
||||
TopoShape &TopoShape::makeRefine(const TopoShape &shape, const char *op, bool no_fail)
|
||||
{
|
||||
(void)op;
|
||||
_Shape.Nullify();
|
||||
|
||||
if(shape.isNull()) {
|
||||
if(!no_fail)
|
||||
HANDLE_NULL_SHAPE;
|
||||
|
||||
@@ -1072,9 +1072,11 @@ private:
|
||||
|
||||
void Nullify()
|
||||
{
|
||||
_owner->resetElementMap();
|
||||
_owner->_cache.reset();
|
||||
_owner->_parentCache.reset();
|
||||
if (!this->IsNull()) {
|
||||
_owner->resetElementMap();
|
||||
_owner->_cache.reset();
|
||||
_owner->_parentCache.reset();
|
||||
}
|
||||
}
|
||||
|
||||
const TopLoc_Location& Location() const
|
||||
|
||||
Reference in New Issue
Block a user