Skip to content

Commit

Permalink
Fix invisible nametag corners
Browse files Browse the repository at this point in the history
Fix regression introduced by the upgrade to Babylon 6.24.0.
  • Loading branch information
Gigabyte5671 committed Oct 24, 2023
1 parent e27b550 commit 05705e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/entity/entities/NametagEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function createSector(
{
pathArray: [points, originPoints],
offset: 0,
sideOrientation: Mesh.DOUBLESIDE
},
scene
);
Expand Down Expand Up @@ -295,9 +296,9 @@ export class NametagEntity {
scene
);
corners.push(sector);
corners.push(sector.clone());
corners.push(sector.clone());
corners.push(sector.clone());
corners.push(sector.clone("NametagCorner"));
corners.push(sector.clone("NametagCorner"));
corners.push(sector.clone("NametagCorner"));
let index = 0;
for (const cornerMesh of corners) {
cornerMesh.material = backgroundMaterial;
Expand Down

0 comments on commit 05705e3

Please sign in to comment.