Merge pull request #13869 from Ondsel-Development/sk_redpoints_perp
Sketcher: Fixes red points issue #13849
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user