Skip to content

Commit

Permalink
Part: fix Sweep path selection
Browse files Browse the repository at this point in the history
Fixes #4255
  • Loading branch information
realthunder authored and wwmayer committed Feb 13, 2020
1 parent 52c64d8 commit 3691f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Part/Gui/TaskSweep.cpp
Expand Up @@ -84,7 +84,7 @@ class SweepWidget::Private
bool allow(App::Document* /*pDoc*/, App::DocumentObject*pObj, const char*sSubName)
{
if (pObj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) {
if (!sSubName) {
if (!sSubName || sSubName[0] == '\0') {
// If selecting again the same edge the passed sub-element is empty. If the whole
// shape is an edge or wire we can use it completely.
const TopoDS_Shape& shape = static_cast<Part::Feature*>(pObj)->Shape.getValue();
Expand Down

0 comments on commit 3691f68

Please sign in to comment.