Skip to content

Commit 970d953

Browse files
committed
Bug 1923 - Ignore image type in loadImage
1 parent 9f40129 commit 970d953

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

processing.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15077,10 +15077,8 @@
1507715077
* @see background
1507815078
*/
1507915079
p.loadImage = function(file, type, callback) {
15080-
// if type is specified add it with a . to file to make the filename
15081-
if (type) {
15082-
file = file + "." + type;
15083-
}
15080+
// if type is specified, we just ignore it
15081+
1508415082
var pimg;
1508515083
// if image is in the preloader cache return a new PImage
1508615084
if (curSketch.imageCache.images[file]) {

0 commit comments

Comments
 (0)