Skip to content

Commit 3e13e53

Browse files
s-rigaudSamuel Rigaud
and
Samuel Rigaud
authored
EXRLoader: Fix string comparison (#30709)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent 43acb6e commit 3e13e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/jsm/loaders/EXRLoader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ class EXRLoader extends DataTextureLoader {
22292229

22302230
const attributeName = parseNullTerminatedString( buffer, offset );
22312231

2232-
if ( attributeName == 0 ) {
2232+
if ( attributeName === '' ) {
22332233

22342234
keepReading = false;
22352235

0 commit comments

Comments
 (0)