Skip to content

Commit 661f9fd

Browse files
committed
Fixed loading normals with multi image load
1 parent 0e401bb commit 661f9fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/loader/filetypes/ImageFile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ var ImageFile = new Class({
5151
function ImageFile (key, url, path, xhrSettings, config)
5252
{
5353
var fileKey = (typeof key === 'string') ? key : GetFastValue(key, 'key', '');
54+
if (url === undefined) url = GetFastValue(key, 'file');
5455

5556
var fileConfig = {
5657
type: 'image',
5758
extension: GetFastValue(key, 'extension', 'png'),
5859
responseType: 'blob',
5960
key: fileKey,
60-
url: GetFastValue(key, 'file', url),
61+
url: url,
6162
path: path,
6263
xhrSettings: GetFastValue(key, 'xhr', xhrSettings),
6364
config: GetFastValue(key, 'config', config)

0 commit comments

Comments
 (0)