Skip to content

Commit

Permalink
Critical bugs missed in WebGL updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed Jul 16, 2018
1 parent 5e1b903 commit 78667e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lavavu/html/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ function vertexColour(colour, opacity, colourmap, data, idx) {
if (data.values) {
var colrange = data.vertices.data.length / (3*data.values.data.length);
idx = Math.floor(idx/colrange);
console.log(colourmap);
if (colourmap) {
var min = 0;
var max = 1;
Expand Down Expand Up @@ -935,7 +934,7 @@ VertexBuffer.prototype.loadPoints = function(object) {

var map = viewer.lookupMap(object.colourmap);

var psize = object.pointsize ? object.pointsize : vis.properties.pointsize;
var psize = object.pointsize ? object.pointsize : viewer.vis.properties.pointsize;
if (!psize) psize = 1.0;

for (var i=0; i<dat.vertices.data.length/3; i++) {
Expand Down

0 comments on commit 78667e5

Please sign in to comment.