From 6254f1b6e440a71dab261cf28e23a8d3ff7a1bb7 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 21 May 2020 18:52:30 +0300 Subject: [PATCH] Issue #3254: Exception setting view normal to face --- src/XGUI/XGUI_ContextMenuMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 8feca1f34..7145c235f 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -537,9 +537,7 @@ void XGUI_ContextMenuMgr::updateViewerMenu() canBeShaded = aDisplayer->canBeShaded(aObject); } if (aShape.get()) { - if (aShape->isPlanar()) { - hasPlanar = true; - } + hasPlanar = (aShape->isFace() && aShape->isPlanar()); } } if (isVisible) { -- 2.39.2