Skip to content

Commit

Permalink
fix picking color updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Sep 20, 2019
1 parent 00bf5fb commit aec5602
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/core/src/lib/layer.js
Expand Up @@ -444,13 +444,6 @@ export default class Layer extends Component {
calculateInstancePickingColors(attribute, {numInstances}) {
const {value, size} = attribute;

if (value[0] === 1) {
// This can happen when data has changed, but the attribute value typed array
// has sufficient size and does not need to be re-allocated.
// This attribute is already populated, we do not have to recalculate it
return;
}

// calculateInstancePickingColors always generates the same sequence.
// pickingColorCache saves the largest generated sequence for reuse
const cacheSize = pickingColorCache.length / size;
Expand Down

0 comments on commit aec5602

Please sign in to comment.