File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/engine/Source/DataSources Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ function DataSourceDisplay(options) {
115
115
this . _removeDataSourceCollectionListener = removeDataSourceCollectionListener ;
116
116
117
117
this . _ready = false ;
118
+ this . _prevResult = this . _ready ;
118
119
}
119
120
120
121
const ExtraVisualizers = [ ] ;
@@ -322,9 +323,12 @@ DataSourceDisplay.prototype.update = function (time) {
322
323
result = visualizers [ x ] . update ( time ) && result ;
323
324
}
324
325
325
- if ( ! result ) {
326
+ // Request a rendering of the scene when all of the data sources
327
+ // switch from false to true
328
+ if ( ! this . _prevResult && result ) {
326
329
this . _scene . requestRender ( ) ;
327
330
}
331
+ this . _prevResult = result ;
328
332
329
333
// once the DataSourceDisplay is ready it should stay ready to prevent
330
334
// entities from breaking updates when they become "un-ready"
You can’t perform that action at this time.
0 commit comments