Skip to content

Commit b7bfd7a

Browse files
committed
fix worldOffset
1 parent bd966d8 commit b7bfd7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/surface/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ proto.update = function(data) {
418418
}
419419

420420
for(i = 0; i < 3; i++) {
421-
data._worldOffset = this.midValues[i] = 0.0; // 0.5 * (this.minValues[i] + this.maxValues[i]);
421+
data._worldOffset[i] = this.midValues[i] = 0.5 * (this.minValues[i] + this.maxValues[i]);
422422
}
423423

424424
for(i = 0; i < 3; i++) {

0 commit comments

Comments
 (0)