Skip to content

Commit

Permalink
Fix uptoshape crash when selecting a face without assigned shape
Browse files Browse the repository at this point in the history
  • Loading branch information
FlachyJoe authored and chennes committed Oct 18, 2024
1 parent f111d46 commit ef2156d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/PartDesign/Gui/TaskExtrudeParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,10 @@ void TaskExtrudeParameters::selectedShapeFace(const Gui::SelectionChanges& msg)
}

auto base = static_cast<Part::Feature*>(extrude->UpToShape.getValue());

if (strcmp(msg.pObjectName, base->getNameInDocument()) != 0) {
if (!base){
base = static_cast<Part::Feature*>(extrude);
}
else if (strcmp(msg.pObjectName, base->getNameInDocument()) != 0) {
return;
}

Expand Down

0 comments on commit ef2156d

Please sign in to comment.