File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -194,23 +194,24 @@ function WebGLRenderLists() {
194
194
195
195
function get ( scene , renderCallDepth ) {
196
196
197
+ const listArray = lists . get ( scene ) ;
197
198
let list ;
198
199
199
- if ( lists . has ( scene ) === false ) {
200
+ if ( listArray === undefined ) {
200
201
201
202
list = new WebGLRenderList ( ) ;
202
203
lists . set ( scene , [ list ] ) ;
203
204
204
205
} else {
205
206
206
- if ( renderCallDepth >= lists . get ( scene ) . length ) {
207
+ if ( renderCallDepth >= listArray . length ) {
207
208
208
209
list = new WebGLRenderList ( ) ;
209
- lists . get ( scene ) . push ( list ) ;
210
+ listArray . push ( list ) ;
210
211
211
212
} else {
212
213
213
- list = lists . get ( scene ) [ renderCallDepth ] ;
214
+ list = listArray [ renderCallDepth ] ;
214
215
215
216
}
216
217
You can’t perform that action at this time.
0 commit comments