Skip to content

Commit 2e9a276

Browse files
committed
fix: correct small harmless error in ifc importer
1 parent dc731f9 commit 2e9a276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/fragments/src/Importers/IfcImporter/src/geometry/ifc-file-reader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ export class IfcFileReader {
254254
// Force ifc annotations to be processed last because
255255
// they can cause some problems with coordination matrix
256256
// e.g. when there is an annotation at the 0,0
257-
if(toProcess.includes(WEBIFC.IFCANNOTATION)) {
257+
if (toProcess.includes(WEBIFC.IFCANNOTATION)) {
258258
toProcess.splice(toProcess.indexOf(WEBIFC.IFCANNOTATION), 1);
259+
toProcess.push(WEBIFC.IFCANNOTATION);
259260
}
260-
toProcess.push(WEBIFC.IFCANNOTATION);
261261

262262
const categoryPercentage = 0.5 / toProcess.length;
263263
for (const [index, category] of toProcess.entries()) {

0 commit comments

Comments
 (0)