return true;
}
- if(!anEndPointRef->isInitialized()) {
+ ObjectPtr anObject = anEndPointRef->object();
+ AttributePtr anAttr = anEndPointRef->attr();
+ if(!anObject.get() && !anAttr.get()) {
return true;
}
return false;
}
- ObjectPtr anObject = anEndPointRef->object();
ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
if(aResult.get()) {
GeomShapePtr aShape = aResult->shape();
return true;
}
- if(!anEndPointRef->isInitialized()) {
- return true;
- }
-
GeomShapePtr anArcShape = anArcFeature->getArcShape();
if(!anArcShape.get() || anArcShape->isNull()) {
}
ObjectPtr anObject = anEndPointRef->object();
+ AttributePtr anAttr = anEndPointRef->attr();
+ if(!anObject.get() && !anAttr.get()) {
+ return true;
+ }
+
ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
if(aResult.get()) {
GeomShapePtr aShape = aResult->shape();