use s6 string

This commit is contained in:
casperlamboo 2016-03-29 08:01:07 +02:00
parent ef74eebf8a
commit 3531d64dbf

View File

@ -7,11 +7,11 @@ export default function createLines(geometry, settings) {
var lineLookup = {};
var addLine = (a, b) => {
var index = lineLookup[b + '_' + a];
var index = lineLookup[`${b}_${a}`];
if (index === undefined) {
index = lines.length;
lineLookup[a + '_' + b] = index;
lineLookup[`${a}_${b}`] = index;
lines.push({
line: new THREE.Line3(geometry.vertices[a], geometry.vertices[b]),