In reversePainterSortStable
in src/renderers/webgl/WebGLRenderLists.js
there is either a sneaky copy & paste bug or at least (what should be) a code style violation:
three.js/src/renderers/webgl/WebGLRenderLists.js
Lines 35 to 55
in
0f67138
Note the } if ( a.z !== b.z ) {
missing an else
or a line-break in line 45, presumably the else
like in painterSortStable
.
Tracing it back leads to a commit from Feb 20, 2015: 052f81a
That’s a typo indeed. Although, as far as I can tell, the behaviour would remain the same.