Merge pull request #21713 from 3x380V/pd_fixes

PartDesign: Random fixes
This commit is contained in:
Chris Hennes
2025-09-29 10:54:46 -05:00
committed by GitHub
13 changed files with 466 additions and 266 deletions

View File

@@ -393,6 +393,10 @@ gp_Dir LinearPattern::getDirectionFromProperty(const App::PropertyLinkSub& dirPr
Base::Vector3d d = line->getDirection();
dir = gp_Dir(d.x, d.y, d.z);
}
else if (auto* plane = freecad_cast<App::Plane*>(refObject)) {
Base::Vector3d d = plane->getDirection();
dir = gp_Dir(d.x, d.y, d.z);
}
else if (auto* line = freecad_cast<App::Line*>(refObject)) {
Base::Vector3d d = line->getDirection();
dir = gp_Dir(d.x, d.y, d.z);