Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,14 @@ function createScene(options) {
prevBounds[1][j] = bounds[1][j]
}

//Recalculate bounds
pickDirty = pickDirty || boundsChanged
dirty = dirty || boundsChanged

if(!dirty) {
return
}

if(boundsChanged) {
var tickSpacing = [0,0,0]
for(var i=0; i<3; ++i) {
Expand All @@ -551,10 +559,6 @@ function createScene(options) {
}
}

//Recalculate bounds
pickDirty = pickDirty || boundsChanged
dirty = dirty || boundsChanged

//Get scene
var width = gl.drawingBufferWidth
var height = gl.drawingBufferHeight
Expand Down Expand Up @@ -604,7 +608,6 @@ function createScene(options) {
obj.clipBounds = bounds
}
}

//Set spike parameters
if(selection.object) {
if(scene.snapToData) {
Expand All @@ -621,10 +624,6 @@ function createScene(options) {
renderPick()
}

if(!dirty) {
return
}

//Recalculate pixel data
scene.axesPixels = axesRanges(scene.axes, cameraParams, width, height)

Expand Down