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;
}
// Set shape
anObstacle->SetShape3D( aShape );
+ anObstacle->Update();
+
// Set operation status
anIsOk = true;
theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;