PD: fixes #7629: Keep sketch visible during revolution tasks

This commit is contained in:
wmayer
2022-11-05 19:09:54 +01:00
parent 75d02279a7
commit b5bd12a069

View File

@@ -28,7 +28,7 @@
#include <App/Origin.h>
#include <Base/Console.h>
#include <Gui/Application.h>
#include <Gui/Command.h>
#include <Gui/CommandT.h>
#include <Gui/Selection.h>
#include <Gui/ViewProvider.h>
#include <Gui/ViewProviderOrigin.h>
@@ -250,6 +250,9 @@ void TaskRevolutionParameters::onAxisChanged(int num)
App::PropertyLinkSub &lnk = *(axesInList[num]);
if (!lnk.getValue()) {
// enter reference selection mode
if (auto sketch = dynamic_cast<Part::Part2DObject*>(pcRevolution->Profile.getValue())) {
Gui::cmdAppObjectShow(sketch);
}
TaskSketchBasedParameters::onSelectReference(AllowSelection::EDGE |
AllowSelection::PLANAR |
AllowSelection::CIRCLE);