提交 0373ba6b 编写于 作者: M Mr.doob

WebGLRenderer: Tweaks to drawRange code. See 06893919.

上级 bdb0bd42
......@@ -833,10 +833,9 @@ THREE.WebGLRenderer = function ( parameters ) {
var groupCount = group !== null ? group.count : Infinity;
var drawStart = Math.max( dataStart, rangeStart, groupStart );
var drawEnd = Math.min( dataStart + dataCount, rangeStart + rangeCount, groupStart + groupCount ) - 1;
var drawCount = drawEnd - drawStart + 1;
var drawCount = Math.max( 0, drawEnd - drawStart + 1 );
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册