@babylonjs/loaders 9.37.1 → 9.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1667,7 +1667,9 @@ export class FBXFileLoader {
1667
1667
  }
1668
1668
  }
1669
1669
  static _getMimeType(fileName) {
1670
- const mimeType = GetMimeType(fileName);
1670
+ // Encode the literal filename so '#' and '?' in embedded texture names are
1671
+ // not mistaken for URL fragment or query-string delimiters by GetMimeType.
1672
+ const mimeType = GetMimeType(encodeURIComponent(fileName));
1671
1673
  if (mimeType) {
1672
1674
  return mimeType;
1673
1675
  }