PD: move ReferenceHighlighter to Part module

This commit is contained in:
wmayer
2022-01-18 18:24:02 +01:00
parent 09e14f8488
commit 8db8126dd5
7 changed files with 19 additions and 18 deletions

View File

@@ -31,10 +31,10 @@
#include "Utils.h"
#include "ViewProviderLoft.h"
#include "TaskLoftParameters.h"
#include "ReferenceHighlighter.h"
#include <Mod/PartDesign/App/Body.h>
#include <Mod/PartDesign/App/FeatureLoft.h>
#include <Mod/Sketcher/App/SketchObject.h>
#include <Mod/Part/Gui/ReferenceHighlighter.h>
#include <Gui/Control.h>
#include <Gui/Command.h>
#include <Gui/Application.h>
@@ -166,7 +166,7 @@ void ViewProviderLoft::highlightReferences(Part::Feature* base, const std::vecto
edgeColors = svp->LineColorArray.getValues();
std::vector<App::Color> colors = edgeColors;
ReferenceHighlighter highlighter(base->Shape.getValue(), svp->LineColor.getValue());
PartGui::ReferenceHighlighter highlighter(base->Shape.getValue(), svp->LineColor.getValue());
highlighter.getEdgeColors(elements, colors);
svp->LineColorArray.setValues(colors);
}