[PD] fix pad uptoface and uptoshape (#16030)

* [PD] fix Pad UpToFace and UpToShape
* specify struct pointers for Win
* Rename variables for MSVC compatibility - windows.h defines 'near' and 'far' as macros
* Add unit test

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
Florian Foinant-Willig
2024-09-19 15:51:18 +02:00
committed by GitHub
parent 85082b72d4
commit e157f0616a
8 changed files with 156 additions and 25 deletions

View File

@@ -708,12 +708,10 @@ int ProfileBased::getUpToShapeFromLinkSubList(TopoShape& upToShape, const App::P
}
}
if (ret == 0){
throw Base::ValueError("SketchBased: No face selected");
return 0;
}
upToShape = faceList[0];
if (ret == 1){
upToShape = faceList[0];
return 1;
}