From 2caa4246949744457da8d944f45f7190060cd0c4 Mon Sep 17 00:00:00 2001 From: mschuetz Date: Sat, 4 Apr 2015 18:21:02 +0200 Subject: [PATCH] fix double slashes in URL --- src/PointCloudOctreeGeometry.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PointCloudOctreeGeometry.js b/src/PointCloudOctreeGeometry.js index 5a58e232..679da76f 100644 --- a/src/PointCloudOctreeGeometry.js +++ b/src/PointCloudOctreeGeometry.js @@ -57,6 +57,8 @@ Potree.PointCloudOctreeGeometryNode.prototype.getHierarchyPath = function(){ for(var i = 0; i < numParts; i++){ path += indices.substr(i * hierarchyStepSize, hierarchyStepSize) + "/"; } + + path = path.slice(0,-1); return path; }