Skip to content

Commit f84052c

Browse files
je-cookyorikvanhavre
authored andcommitted
fix non compressed read
1 parent 60e9947 commit f84052c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Mod/BIM/importers/importWebGL.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,13 @@ def getHTMLTemplate():
224224
obj.facesToFacets = obj.facesToFacets.map(x => baseDecode(x));
225225
}
226226
}
227-
227+
else {
228+
for (const obj of data.objects) {
229+
obj.verts = obj.verts.map(x => parseFloat(x));
230+
obj.wires = obj.wires.map(w => w.map(x => parseFloat(x)))
231+
obj.facesToFacets = obj.facesToFacets.map(w => w.map(x => parseFloat(x)));
232+
}
233+
}
228234
// Get bounds for global clipping
229235
const globalMaxMin = [{min: null, max: null},
230236
{min: null, max: null},

0 commit comments

Comments
 (0)