From a70d25b65e67b834df2e3a922cf62071207bf6ff Mon Sep 17 00:00:00 2001 From: theosib Date: Tue, 17 Sep 2024 15:12:34 -0400 Subject: [PATCH] Filter out infinite shapes from Loft available shapes --- src/Mod/Part/Gui/TaskLoft.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/Gui/TaskLoft.cpp b/src/Mod/Part/Gui/TaskLoft.cpp index c9e25de6a4..59066d3fa2 100644 --- a/src/Mod/Part/Gui/TaskLoft.cpp +++ b/src/Mod/Part/Gui/TaskLoft.cpp @@ -137,10 +137,11 @@ void LoftWidget::findShapes() } } - if (shape.ShapeType() == TopAbs_FACE || + if (!shape.Infinite() && + (shape.ShapeType() == TopAbs_FACE || shape.ShapeType() == TopAbs_WIRE || shape.ShapeType() == TopAbs_EDGE || - shape.ShapeType() == TopAbs_VERTEX) { + shape.ShapeType() == TopAbs_VERTEX)) { QString label = QString::fromUtf8(obj->Label.getValue()); QString name = QString::fromLatin1(obj->getNameInDocument()); QTreeWidgetItem* child = new QTreeWidgetItem();