Skip to content

Commit 2067567

Browse files
committed
fix function, add comment
1 parent c273f38 commit 2067567

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uniforms/utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// reduce the set of textures to just those with a unique source while retaining
2+
// the order of the textures.
13
export function reduceTexturesToUniqueSources( textures ) {
24

35
const sourceSet = new Set();
@@ -7,6 +9,7 @@ export function reduceTexturesToUniqueSources( textures ) {
79
const tex = textures[ i ];
810
if ( ! sourceSet.has( tex.source ) ) {
911

12+
sourceSet.add( tex.source );
1013
result.push( tex );
1114

1215
}

0 commit comments

Comments
 (0)