Skip to content

Commit

Permalink
fix(ScalarsToColors): ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 4, 2018
1 parent 87dbfda commit 16f869c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Common/Core/ScalarsToColors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,10 @@ function vtkScalarsToColors(publicAPI, model) {

//----------------------------------------------------------------------------
publicAPI.convertToRGBA = (colors, numComp, numTuples) => {
let { alpha } = model;
if (
numComp === 4 &&
model.alpha >= 1.0 &&
alpha >= 1.0 &&
colors.getDataType() === VtkDataTypes.UNSIGNED_CHAR
) {
return colors;
Expand All @@ -469,7 +470,6 @@ function vtkScalarsToColors(publicAPI, model) {
return newColors;
}

let alpha = model.alpha;
alpha = alpha > 0 ? alpha : 0;
alpha = alpha < 1 ? alpha : 1;

Expand Down

0 comments on commit 16f869c

Please sign in to comment.