Salome HOME
17.12.2013. Added Partition algorithm (draft version).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportGeomObjectOp.cxx
index 4ba06589d180a3cce243b3e641ff58c3db810d2e..b993882982b09c8c9e9a4700130d93561a9999a5 100644 (file)
@@ -167,6 +167,9 @@ bool HYDROGUI_ImportGeomObjectOp::processApply( int& theUpdateFlags,
         if ( anObstacleToEdit.IsNull() ) {
           anObstacle = 
             Handle(HYDROData_Obstacle)::DownCast( doc()->CreateObject(KIND_OBSTACLE) );
+          
+          anObstacle->SetFillingColor( HYDROData_Obstacle::DefaultFillingColor() );
+          anObstacle->SetBorderColor( HYDROData_Obstacle::DefaultBorderColor() );
         } else {
           anObstacle = anObstacleToEdit;
         }
@@ -186,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;