use s6 string

This commit is contained in:
casperlamboo 2016-03-29 08:01:07 +02:00 committed by Simon Voordouw
parent 61e7a59177
commit ed76a9f255

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]),