From f7e22f339c81c98f148bedeca803f2fb72d0d025 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 5 Feb 2025 13:10:00 +0100 Subject: [PATCH] PD: Support of plane in linear pattern feature --- src/Mod/PartDesign/App/FeatureLinearPattern.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/PartDesign/App/FeatureLinearPattern.cpp b/src/Mod/PartDesign/App/FeatureLinearPattern.cpp index 7a0aaaf318..5e69fb4744 100644 --- a/src/Mod/PartDesign/App/FeatureLinearPattern.cpp +++ b/src/Mod/PartDesign/App/FeatureLinearPattern.cpp @@ -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(refObject)) { + Base::Vector3d d = plane->getDirection(); + dir = gp_Dir(d.x, d.y, d.z); + } else if (auto* line = freecad_cast(refObject)) { Base::Vector3d d = line->getDirection(); dir = gp_Dir(d.x, d.y, d.z);