]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Set polyline visible after it creation (Bug #80).
authoradv <adv@opencascade.com>
Wed, 20 Nov 2013 07:47:59 +0000 (07:47 +0000)
committeradv <adv@opencascade.com>
Wed, 20 Nov 2013 07:47:59 +0000 (07:47 +0000)
src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index 0cd16bf7bb3614f6954a2573c9e878f153b570b6..cbefd532cc923ff07a3b2853736fb3f0008284d9 100755 (executable)
@@ -187,8 +187,11 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags,
   }
   aPolylineObj->SetPolylineData(aPolylineData);
 
+  if( !myIsEdit )
+    module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), aPolylineObj, true );
+
   theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;
-  module()->setObjectVisible( HYDROGUI_Tool::GetActiveGraphicsViewId( module() ), aPolylineObj, true );
+
   return true;
 }