提交 0ae4d897 编写于 作者: O oguz

fix: remove string concat

上级 5360a81b
......@@ -128,15 +128,23 @@ function WebGLRenderLists() {
function get( scene, camera ) {
var hash = scene.id + ',' + camera.id;
var list = lists[ hash ];
var cameras = lists[ scene.id ];
var list;
if ( cameras === undefined ) {
if ( list === undefined ) {
list = new WebGLRenderList();
lists[ scene.id ] = {};
lists[ scene.id ][ camera.id ] = list;
// console.log( 'THREE.WebGLRenderLists:', hash );
} else {
list = new WebGLRenderList();
lists[ hash ] = list;
list = cameras[ camera.id ];
if ( list === undefined ) {
list = new WebGLRenderList();
cameras[ camera.id ] = list;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册