Merge pull request #13869 from Ondsel-Development/sk_redpoints_perp

Sketcher: Fixes red points issue #13849
This commit is contained in:
Chris Hennes
2024-05-27 10:36:27 -05:00
committed by GitHub

View File

@@ -139,7 +139,9 @@ void EditModeGeometryCoinManager::updateGeometryColor(const GeoListFacade& geoli
ViewProviderSketchCoinAttorney::getConstraints(viewProvider);
for (auto& constr : constraints) {
if (constr->Type == Coincident
|| (constr->Type == Tangent && constr->FirstPos != Sketcher::PointPos::none)) {
|| (constr->Type == Tangent && constr->FirstPos != Sketcher::PointPos::none)
|| (constr->Type == Perpendicular && constr->FirstPos != Sketcher::PointPos::none
&& constr->SecondPos != Sketcher::PointPos::none)) {
if ((constr->First == GeoId && constr->FirstPos == PosId)
|| (constr->Second == GeoId && constr->SecondPos == PosId)) {
return true;
@@ -301,7 +303,7 @@ void EditModeGeometryCoinManager::updateGeometryColor(const GeoListFacade& geoli
z = viewOrientationFactor * drawingParameters.zLowPoints;
}
else {
if (isExternal) {
if (isExternal || isInternalAlignedGeom(GeoId)) {
z = viewOrientationFactor * drawingParameters.zRootPoint;
}
else if (geom->getConstruction()) {