message: gltfio: JavaScript friendly error message for glb files.
diff: @@ -220,6 +220,9 @@ Filament.loadClassExtensions = function() {
  };
  Filament.gltfio$AssetLoader.prototype.createAssetFromJson = function(buffer) {
  + if ('string' == typeof buffer && buffer.endsWith('.glb')) {
  + console.error('Please use createAssetFromBinary for glb files.');
  + }
  buffer = getBufferDescriptor(buffer);
  const result = this._createAssetFromJson(buffer);
  buffer.delete();
  @@ -227,6 +230,9 @@ Filament.loadClassExtensions = function() {
  };
  Filament.gltfio$AssetLoader.prototype.createAssetFromBinary = function(buffer) {
  + if ('string' == typeof buffer && buffer.endsWith('.gltf')) {
  + console.error('Please use createAssetFromJson for gltf files.');
  + }
  buffer = getBufferDescriptor(buffer);
  const result = this._createAssetFromBinary(buffer);
  buffer.delete();
  