Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update viewer on delete an item
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Selection.cpp
diff --git
a/src/XGUI/XGUI_Selection.cpp
b/src/XGUI/XGUI_Selection.cpp
index 64820f7cd3612094d4a357f62c79524f3e98193b..60fe5e30f296d254f0d42ec2b75136524b02b07e 100644
(file)
--- a/
src/XGUI/XGUI_Selection.cpp
+++ b/
src/XGUI/XGUI_Selection.cpp
@@
-23,6
+23,10
@@
#include "XGUI_ViewerProxy.h"
#include "XGUI_ObjectsBrowser.h"
#include "XGUI_ViewerProxy.h"
#include "XGUI_ObjectsBrowser.h"
+#ifndef HAVE_SALOME
+#include <AppElements_ViewCube.h>
+#endif
+
#include "ModuleBase_BRepOwner.h"
#include "ModuleBase_ResultPrs.h"
#include "ModuleBase_ViewerPrs.h"
#include "ModuleBase_BRepOwner.h"
#include "ModuleBase_ResultPrs.h"
#include "ModuleBase_ViewerPrs.h"
@@
-196,9
+200,15
@@
void XGUI_Selection::getSelectedInBrowser(QList<ModuleBase_ViewerPrsPtr>& thePre
void XGUI_Selection::fillPresentation(ModuleBase_ViewerPrsPtr& thePrs,
const Handle(SelectMgr_EntityOwner)& theOwner) const
{
void XGUI_Selection::fillPresentation(ModuleBase_ViewerPrsPtr& thePrs,
const Handle(SelectMgr_EntityOwner)& theOwner) const
{
- thePrs->setOwner(theOwner);
Handle(AIS_InteractiveObject) anIO =
Handle(AIS_InteractiveObject)::DownCast(theOwner->Selectable());
Handle(AIS_InteractiveObject) anIO =
Handle(AIS_InteractiveObject)::DownCast(theOwner->Selectable());
+#ifndef HAVE_SALOME
+ Handle(AppElements_ViewCube) aCube = Handle(AppElements_ViewCube)::DownCast(anIO);
+ if (!aCube.IsNull())
+ return;
+#endif
+
+ thePrs->setOwner(theOwner);
thePrs->setInteractive(anIO);
// we should not check the appearance of this feature because there can be some selected shapes
thePrs->setInteractive(anIO);
// we should not check the appearance of this feature because there can be some selected shapes