Skip to content

Commit 94ebb09

Browse files
committed
remove unused parameter glplotLayout and glplot.update call
1 parent b8ca391 commit 94ebb09

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/plots/gl3d/scene.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,10 @@ proto.plot = function(sceneData, fullLayout, layout) {
514514
var fullSceneLayout = fullLayout[scene.id];
515515
var sceneLayout = layout[scene.id];
516516

517-
scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));
518-
519517
// Update layout
520518
scene.fullLayout = fullLayout;
521519
scene.fullSceneLayout = fullSceneLayout;
522520

523-
scene.glplotLayout = fullSceneLayout;
524521
scene.axesOptions.merge(fullLayout, fullSceneLayout);
525522
scene.spikeOptions.merge(fullSceneLayout);
526523

@@ -529,8 +526,8 @@ proto.plot = function(sceneData, fullLayout, layout) {
529526
scene.updateFx(fullSceneLayout.dragmode, fullSceneLayout.hovermode);
530527
scene.camera.enableWheel = scene.graphDiv._context._scrollZoom.gl3d;
531528

532-
// Update scene
533-
scene.glplot.update({});
529+
// Update scene background
530+
scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));
534531

535532
// Update axes functions BEFORE updating traces
536533
scene.setConvert(axis);

0 commit comments

Comments
 (0)