Sketcher: OVP were drawn at wrong position when editing a sketch from link (#18060)

* Sketcher: OVP were drawn at wrong position when editing a sketch from a link.

* Update src/Mod/Sketcher/Gui/DrawSketchController.h

Co-authored-by: Adrián Insaurralde Avalos <36372335+adrianinsaval@users.noreply.github.com>

---------

Co-authored-by: Adrián Insaurralde Avalos <36372335+adrianinsaval@users.noreply.github.com>
This commit is contained in:
PaddleStroke
2024-11-29 18:12:48 +01:00
committed by GitHub
parent cafefafdf1
commit 7c15b3d240

View File

@@ -583,7 +583,9 @@ protected:
void initNOnViewParameters(int n)
{
Gui::View3DInventorViewer* viewer = handler->getViewer();
Base::Placement placement = handler->sketchgui->getSketchObject()->globalPlacement();
auto doc = Gui::Application::Instance->editDocument();
auto placement = Base::Placement(doc->getEditingTransform());
onViewParameters.clear();