]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
initial SPV3D support mbs/pv3d
authormbs <martin.bernhard@opencascade.com>
Mon, 27 Mar 2023 07:52:33 +0000 (08:52 +0100)
committermbs <martin.bernhard@opencascade.com>
Mon, 27 Mar 2023 07:52:33 +0000 (08:52 +0100)
src/SMESHGUI/SMESHGUI_Displayer.cxx

index 8d588ebb3cd6cd274b8feb5fef9b53b2808f22fb..895f45b7efbe1b1a12613c8018ca3bc616283705 100644 (file)
@@ -105,7 +105,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() );