]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3254: Exception setting view normal to face
authorvsv <vsv@opencascade.com>
Thu, 21 May 2020 15:52:30 +0000 (18:52 +0300)
committervsv <vsv@opencascade.com>
Thu, 21 May 2020 15:52:30 +0000 (18:52 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp

index 8feca1f340912900ded52ea8c5db2c87e55a3059..7145c235fe18a50aac28446129ec023d490ce8c0 100644 (file)
@@ -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) {