From 8a76f7e322a30c51a6af1b7a7b00a22b962369a0 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 20 May 2020 16:44:53 +0300 Subject: [PATCH] Issue #3254: Exception setting view normal to face --- src/XGUI/XGUI_Workshop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index bca2c85b3..37bbb612d 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -2787,7 +2787,7 @@ void XGUI_Workshop::setNormalView(bool toInvert) GeomShapePtr aPlanarFace; foreach(ModuleBase_ViewerPrsPtr aPrs, aPrsList) { GeomShapePtr aShape = aPrs->shape(); - if (aShape.get() && aShape->isPlanar()) { + if (aShape.get() && aShape->isFace() && aShape->isPlanar()) { aPlanarFace = aShape; break; } -- 2.39.2