File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -656,22 +656,21 @@ export default class ProgramConfiguration {
656656 }
657657
658658 getBinderAttributes ( ) : Array < string > {
659- const result : string [ ] = [ ] ;
659+ const result : Set < string > = new Set ( ) ;
660660 for ( const property in this . binders ) {
661661 const binder = this . binders [ property ] ;
662662 if ( binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof PatternCompositeBinder ) {
663663 for ( let i = 0 ; i < binder . paintVertexAttributes . length ; i ++ ) {
664- result . push ( binder . paintVertexAttributes [ i ] . name ) ;
664+ result . add ( binder . paintVertexAttributes [ i ] . name ) ;
665665 }
666666 }
667-
668667 if ( binder instanceof PatternCompositeBinder ) {
669668 for ( let i = 0 ; i < patternTransitionAttributes . members . length ; i ++ ) {
670- result . push ( patternTransitionAttributes . members [ i ] . name ) ;
669+ result . add ( patternTransitionAttributes . members [ i ] . name ) ;
671670 }
672671 }
673672 }
674- return result ;
673+ return Array . from ( result ) ;
675674 }
676675
677676 getBinderUniforms ( ) : Array < string > {
You can’t perform that action at this time.
0 commit comments