@@ -658,9 +658,7 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
658
658
659
659
// module-independent attributes
660
660
traceOut . index = i ;
661
- var visible = coerce ( 'visible' ) ,
662
- scene ,
663
- _module ;
661
+ var visible = coerce ( 'visible' ) ;
664
662
665
663
coerce ( 'type' ) ;
666
664
coerce ( 'uid' ) ;
@@ -672,19 +670,20 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
672
670
coerceSubplotAttr ( 'geo' , 'geo' ) ;
673
671
coerceSubplotAttr ( 'ternary' , 'subplot' ) ;
674
672
675
- // module-specific attributes --- note: we need to send a trace into
676
- // the 3D modules to have it removed from the webgl context.
677
- if ( visible || scene ) {
678
- _module = plots . getModule ( traceOut ) ;
679
- traceOut . _module = _module ;
680
- }
681
673
682
- // gets overwritten in pie, geo and ternary modules
683
- if ( visible ) coerce ( 'hoverinfo' , ( layout . _dataLength === 1 ) ? 'x+y+z+text' : undefined ) ;
684
674
685
- if ( _module && visible ) _module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
686
675
687
676
if ( visible ) {
677
+ var _module = plots . getModule ( traceOut ) ;
678
+ traceOut . _module = _module ;
679
+
680
+ // gets overwritten in pie, geo and ternary modules
681
+ coerce ( 'hoverinfo' , ( layout . _dataLength === 1 ) ? 'x+y+z+text' : undefined ) ;
682
+
683
+ // TODO add per-base-plot-module trace defaults step
684
+
685
+ if ( _module ) _module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
686
+
688
687
coerce ( 'name' , 'trace ' + i ) ;
689
688
690
689
if ( ! plots . traceIs ( traceOut , 'noOpacity' ) ) coerce ( 'opacity' ) ;
0 commit comments