From a5d7987ad01cbf044f0d1655a835a6a2d6122902 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 29 Apr 2022 15:15:51 +0200 Subject: [PATCH] Part: handle exception of makeGTransform in _makeTransform --- src/Mod/Part/App/TopoShape.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 2bea062873..664c641bbc 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -4315,10 +4315,15 @@ bool TopoShape::_makeTransform(const TopoShape &shape, const Base::Matrix4D &rclTrf, const char *op, bool checkScale, bool copy) { if(checkScale) { - auto type = rclTrf.hasScale(); - if (type != Base::ScaleType::Uniform && type != Base::ScaleType::NoScaling) { - makeGTransform(shape,rclTrf,op,copy); - return true; + try { + auto type = rclTrf.hasScale(); + if (type != Base::ScaleType::Uniform && type != Base::ScaleType::NoScaling) { + makeGTransform(shape,rclTrf,op,copy); + return true; + } + } + catch (const Standard_Failure& e) { + Base::Console().Warning("TopoShape::makeGTransform failed: %s\n", e.GetMessageString()); } } makeTransform(shape,convert(rclTrf),op,copy);