Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7dc2c7
)
Issue #3254: Exception setting view normal to face
author
vsv
<vsv@opencascade.com>
Thu, 21 May 2020 15:52:30 +0000
(18:52 +0300)
committer
vsv
<vsv@opencascade.com>
Thu, 21 May 2020 15:52:30 +0000
(18:52 +0300)
src/XGUI/XGUI_ContextMenuMgr.cpp
patch
|
blob
|
history
diff --git
a/src/XGUI/XGUI_ContextMenuMgr.cpp
b/src/XGUI/XGUI_ContextMenuMgr.cpp
index 8feca1f340912900ded52ea8c5db2c87e55a3059..7145c235fe18a50aac28446129ec023d490ce8c0 100644
(file)
--- 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) {