From e5f0de83b362a7bcfd8c06814b0f773b3f337f38 Mon Sep 17 00:00:00 2001 From: Sergo Date: Mon, 6 Mar 2017 23:52:44 -0500 Subject: [PATCH] stop revolve if no sketches in selection --- src/Mod/PartDesign/Gui/Command.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 1ba15e590631..5f24a6e7f615 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -738,14 +738,14 @@ void prepareProfileBased(Gui::Command* cmd, const std::string& which, func(static_cast(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