Part: Geometry - encapsulate construction access

This commit is contained in:
Abdullah Tahiri
2020-10-25 03:41:42 +01:00
parent 1a9dcdb3db
commit 00a1aa6225
9 changed files with 78 additions and 74 deletions

View File

@@ -2650,7 +2650,7 @@ void ViewProviderSketch::updateColor(void)
pverts[i].getValue(x,y,z);
const Part::Geometry * tmp = getSketchObject()->getGeometry(edit->PointIdToGeoId[i]);
if(tmp && z < zHighlight) {
if(tmp->Construction)
if(tmp->getConstruction())
pverts[i].setValue(x,y,zConstrPoint);
else
pverts[i].setValue(x,y,zNormPoint);
@@ -2688,7 +2688,7 @@ void ViewProviderSketch::updateColor(void)
auto isConstructionGeom = [](Sketcher::SketchObject* obj, int GeoId) -> bool {
const Part::Geometry* geom = obj->getGeometry(GeoId);
if (geom)
return geom->Construction;
return geom->getConstruction();
return false;
};