Skip to content

Commit 6b8a500

Browse files
authored
fix (loaders/OBJ): fix a typo that cause the obj loader not loading v… (#18318)
The obj file loader does not load vertex colors into the final mesh (with option `importVertexColors` on) because of a typo (`_wrappedColorsForBabylon` -> `_unwrappedColorsForBabylon`).
1 parent ece7464 commit 6b8a500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/loaders/src/OBJ/solidParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class SolidParser {
240240
if (this._wrappedUvsForBabylon.length) {
241241
this._unwrappedUVForBabylon.push(this._wrappedUvsForBabylon[l].x, this._wrappedUvsForBabylon[l].y); //z is an optional value not supported by BABYLON
242242
}
243-
if (this._unwrappedColorsForBabylon.length) {
243+
if (this._wrappedColorsForBabylon.length) {
244244
//Push the r, g, b, a values of each element in the unwrapped array
245245
this._unwrappedColorsForBabylon.push(
246246
this._wrappedColorsForBabylon[l].r,

0 commit comments

Comments
 (0)