Part: Geometry - encapsulate construction access
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user