]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
initial SPV3D support
authormbs <martin.bernhard@opencascade.com>
Mon, 27 Mar 2023 07:52:33 +0000 (08:52 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 7 Apr 2023 07:25:41 +0000 (09:25 +0200)
src/SMESHGUI/SMESHGUI_Displayer.cxx

index 7c76db556ba6b1d90429c2ac79e52aa7f3b87212..ca1161e91955ae1bf451f90e676a43ca054a0048 100644 (file)
@@ -94,7 +94,7 @@ SalomeApp_Study* SMESHGUI_Displayer::study() const
 bool SMESHGUI_Displayer::canBeDisplayed( const QString& entry, const QString& viewer_type ) const
 {
   bool res = false;
-  if(viewer_type != SVTK_Viewer::Type())
+  if(viewer_type != SVTK_Viewer::Type() && viewer_type != SPV3D_ViewModel::Type())
     return res;
   
   _PTR(SObject) obj = SMESH::getStudy()->FindObjectID( (const char*)entry.toUtf8() );