Part: Rename AttachExtension::Support property to AttachmentSupport, to avoid name conflict with base features. Fixes #7052
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
2643902b6b
commit
fbd8767242
@@ -4029,7 +4029,7 @@ bool SketchObject::isExternalAllowed(App::Document* pDoc, App::DocumentObject* p
|
||||
|
||||
// Note: Checking for the body of the support doesn't work when the support are the three base
|
||||
// planes
|
||||
// App::DocumentObject *support = this->Support.getValue();
|
||||
// App::DocumentObject *support = this->AttachmentSupport.getValue();
|
||||
Part::BodyBase* body_this = Part::BodyBase::findBodyOf(this);
|
||||
Part::BodyBase* body_obj = Part::BodyBase::findBodyOf(pObj);
|
||||
App::Part* part_this = App::Part::getPartOfObject(this);
|
||||
@@ -4094,7 +4094,7 @@ bool SketchObject::isCarbonCopyAllowed(App::Document* pDoc, App::DocumentObject*
|
||||
|
||||
// Note: Checking for the body of the support doesn't work when the support are the three base
|
||||
// planes
|
||||
// App::DocumentObject *support = this->Support.getValue();
|
||||
// App::DocumentObject *support = this->AttachmentSupport.getValue();
|
||||
Part::BodyBase* body_this = Part::BodyBase::findBodyOf(this);
|
||||
Part::BodyBase* body_obj = Part::BodyBase::findBodyOf(pObj);
|
||||
App::Part* part_this = App::Part::getPartOfObject(this);
|
||||
@@ -7401,7 +7401,7 @@ Part::Geometry* projectLine(const BRepAdaptor_Curve& curve, const Handle(Geom_Pl
|
||||
bool SketchObject::evaluateSupport()
|
||||
{
|
||||
// returns false if the shape is broken, null or non-planar
|
||||
App::DocumentObject* link = Support.getValue();
|
||||
App::DocumentObject* link = AttachmentSupport.getValue();
|
||||
if (!link || !link->isDerivedFrom<Part::Feature>())
|
||||
return false;
|
||||
return true;
|
||||
@@ -8903,7 +8903,7 @@ void SketchObject::onChanged(const App::Property* prop)
|
||||
#if 0
|
||||
// For now do not delete anything (#0001791). When changing the support
|
||||
// face it might be better to check which external geometries can be kept.
|
||||
else if (prop == &Support) {
|
||||
else if (prop == &AttachmentSupport) {
|
||||
// make sure not to change anything while restoring this object
|
||||
if (!isRestoring()) {
|
||||
// if support face has changed then clear the external geometry
|
||||
|
||||
Reference in New Issue
Block a user