]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Creation of obstacles corrected.
authoradv <adv@opencascade.com>
Tue, 17 Dec 2013 07:02:59 +0000 (07:02 +0000)
committeradv <adv@opencascade.com>
Tue, 17 Dec 2013 07:02:59 +0000 (07:02 +0000)
src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx
src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx

index 44f3476dc67244e8b873c6911983ebb55bcc2346..b993882982b09c8c9e9a4700130d93561a9999a5 100644 (file)
@@ -189,6 +189,8 @@ bool HYDROGUI_ImportGeomObjectOp::processApply( int& theUpdateFlags,
         // Set shape
         anObstacle->SetShape3D( aShape );
 
+        anObstacle->Update();
+
         // Set operation status
         anIsOk = true;
         theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;
index 350c6d66cffd7688193f732fc680ac80f4ab710b..9735ef8a0261bc08f87e5b03ae3c42ba56e6eb39 100644 (file)
@@ -170,6 +170,8 @@ bool HYDROGUI_ImportObstacleFromFileOp::processApply( int& theUpdateFlags,
         anObstacle->SetName( anObstacleName );
       }
 
+      anObstacle->Update();
+
       // Set operation status
       anIsOk = true;
       theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;;