@@ -261,35 +261,23 @@ function sceneUpdate(gd, subplot) {
261
261
var i ;
262
262
for ( i = 0 ; i < scene . count ; i ++ ) {
263
263
if ( scene . fill2d && scene . fillOptions [ i ] ) {
264
- // must do all fills first
265
264
scene . fill2d . draw ( i ) ;
266
- if ( scene . line2d && scene . lineOptions [ i ] ) {
267
- scene . line2d . draw ( i ) ;
268
- if ( scene . error2d && scene . errorXOptions [ i ] ) {
269
- scene . error2d . draw ( i ) ;
270
- }
271
- if ( scene . error2d && scene . errorYOptions [ i ] ) {
272
- scene . error2d . draw ( i + scene . count ) ;
273
- }
274
- }
275
- if ( scene . scatter2d && scene . markerOptions [ i ] && ( ! scene . selectBatch || ! scene . selectBatch [ i ] ) ) {
276
- // traces in no-selection mode
277
- scene . scatter2d . draw ( i ) ;
278
- }
279
- } else {
280
- if ( scene . line2d && scene . lineOptions [ i ] ) {
281
- scene . line2d . draw ( i ) ;
282
- }
283
- if ( scene . error2d && scene . errorXOptions [ i ] ) {
284
- scene . error2d . draw ( i ) ;
285
- }
286
- if ( scene . error2d && scene . errorYOptions [ i ] ) {
287
- scene . error2d . draw ( i + scene . count ) ;
288
- }
289
- if ( scene . scatter2d && scene . markerOptions [ i ] && ( ! scene . selectBatch || ! scene . selectBatch [ i ] ) ) {
290
- // traces in no-selection mode
291
- scene . scatter2d . draw ( i ) ;
292
- }
265
+ }
266
+ if ( scene . line2d && scene . lineOptions [ i ] ) {
267
+ scene . line2d . draw ( i ) ;
268
+ }
269
+ if ( scene . error2d && scene . errorXOptions [ i ] ) {
270
+ scene . error2d . draw ( i ) ;
271
+ }
272
+ if ( scene . error2d && scene . errorYOptions [ i ] ) {
273
+ scene . error2d . draw ( i + scene . count ) ;
274
+ }
275
+ if ( scene . scatter2d && scene . markerOptions [ i ] && ( ! scene . selectBatch || ! scene . selectBatch [ i ] ) ) {
276
+ // traces in no-selection mode
277
+ scene . scatter2d . draw ( i ) ;
278
+ }
279
+ if ( scene . glText [ i ] && scene . textOptions [ i ] ) {
280
+ scene . glText [ i ] . render ( ) ;
293
281
}
294
282
}
295
283
@@ -299,12 +287,6 @@ function sceneUpdate(gd, subplot) {
299
287
scene . scatter2d . draw ( scene . unselectBatch ) ;
300
288
}
301
289
302
- for ( i = 0 ; i < scene . count ; i ++ ) {
303
- if ( scene . glText [ i ] && scene . textOptions [ i ] ) {
304
- scene . glText [ i ] . render ( ) ;
305
- }
306
- }
307
-
308
290
scene . dirty = false ;
309
291
} ;
310
292
0 commit comments