Skip to content

Commit

Permalink
trying to fix 422
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Dec 1, 2023
1 parent 4dca3d7 commit 4edf116
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 107 deletions.
6 changes: 3 additions & 3 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ function processSegments (segments, showStriping, length, globalAnimated, showVe
// append the new surfaceElement to the segmentParentEl
streetParentEl.append(segmentParentEl);
segmentParentEl.setAttribute('position', segmentPositionX + ' 0 0');
segmentParentEl.setAttribute('data-layer-name', 'Segment: ' + segments[i].type + ', ' + variantList[0]);
segmentParentEl.setAttribute('data-layer-name', 'Segment ' + segments[i].type + ', ' + variantList[0]);
}
// create new brown box to represent ground underneath street
const dirtBox = document.createElement('a-box');
Expand Down Expand Up @@ -1215,7 +1215,7 @@ function processBuildings (left, right, streetWidth, showGround, length) {
groundParentEl.setAttribute('position', { x: groundPositionX });
}
groundParentEl.classList.add('ground-' + side);
groundParentEl.setAttribute('data-layer-name', 'Ground ' + side + ': ' + currentValue);
groundParentEl.setAttribute('data-layer-name', 'Ground ' + side + ' ' + currentValue);
buildingElement.appendChild(groundParentEl);
}

Expand All @@ -1241,7 +1241,7 @@ function processBuildings (left, right, streetWidth, showGround, length) {
buildingPos.x += sideMultiplier * (-70.5);
}
const newBuildings = createBuilding(currentValue, sideMultiplier);
newBuildings.setAttribute('data-layer-name', 'Buildings ' + side + ': ' + currentValue);
newBuildings.setAttribute('data-layer-name', 'Buildings ' + side + ' ' + currentValue);

newBuildings.setAttribute('position', buildingPos);
buildingElement.append(newBuildings);
Expand Down
Loading

0 comments on commit 4edf116

Please sign in to comment.