Skip to content

Commit

Permalink
[PartDesign] Revolution Show Sketch...
Browse files Browse the repository at this point in the history
...when 'Select reference...' is used, see discussion https://forum.freecadweb.org/viewtopic.php?f=8&t=72779
  • Loading branch information
Syres916 committed Oct 29, 2022
1 parent 5fe254e commit f0a0e56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp
Expand Up @@ -250,6 +250,10 @@ void TaskRevolutionParameters::onAxisChanged(int num)
App::PropertyLinkSub &lnk = *(axesInList[num]);
if (!lnk.getValue()) {
// enter reference selection mode
auto sketch = dynamic_cast<Part::Part2DObject*>(pcRevolution->Profile.getValue());
if (sketch) {
FCMD_OBJ_SHOW(sketch);
}
TaskSketchBasedParameters::onSelectReference(AllowSelection::EDGE |
AllowSelection::PLANAR |
AllowSelection::CIRCLE);
Expand Down

0 comments on commit f0a0e56

Please sign in to comment.