Skip to content

Commit

Permalink
Check PartDesign::AdditivePipe's auxiliary spine for existence before…
Browse files Browse the repository at this point in the history
… deciding its externality
  • Loading branch information
kkremitzki committed Jul 2, 2017
1 parent 338c610 commit 7f03cca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/Gui/TaskPipeParameters.cpp
Expand Up @@ -727,7 +727,8 @@ bool TaskDlgPipeParameters::accept()
bool ext = false;
if(!pcActiveBody->hasObject(pcPipe->Spine.getValue()) && !pcActiveBody->getOrigin()->hasObject(pcPipe->Spine.getValue()))
ext = true;
else if(!pcActiveBody->hasObject(pcPipe->AuxillerySpine.getValue()) && !pcActiveBody->getOrigin()->hasObject(pcPipe->AuxillerySpine.getValue()))
else if(pcPipe->AuxillerySpine.getValue() && !pcActiveBody->hasObject(pcPipe->AuxillerySpine.getValue()) &&
!pcActiveBody->getOrigin()->hasObject(pcPipe->AuxillerySpine.getValue()))
ext = true;
else {
for(App::DocumentObject* obj : pcPipe->Sections.getValues()) {
Expand Down

0 comments on commit 7f03cca

Please sign in to comment.