Skip to content

Commit

Permalink
stop revolve if no sketches in selection
Browse files Browse the repository at this point in the history
  • Loading branch information
usakhelo authored and wwmayer committed Mar 18, 2017
1 parent 3e195d5 commit e5f0de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/PartDesign/Gui/Command.cpp
Expand Up @@ -738,14 +738,14 @@ void prepareProfileBased(Gui::Command* cmd, const std::string& which,
func(static_cast<Part::Feature*>(feature), FeatName);
};

//if a profie is selected we can make our life easy and fast
auto selection = cmd->getSelection().getSelectionEx();
//if a profile is selected we can make our life easy and fast
auto selection = cmd->getSelection().getSelectionEx(0, Part::Part2DObject::getClassTypeId());
if (!selection.empty() && selection.front().hasSubNames()) {
base_worker(selection.front().getObject(), selection.front().getSubNames().front());
return;
}

//no face profile was selected, do he extended sketch logic
//no face profile was selected, do the extended sketch logic

bool bNoSketchWasSelected = false;
// Get a valid sketch from the user
Expand Down

0 comments on commit e5f0de8

Please sign in to comment.