Merge pull request #11283 from Snuffleupagus/hasBlendModes-Array
Ensure that `PartialEvaluator.hasBlendModes` handles Blend Modes in Arrays (PR 11281 follow-up)
This commit is contained in:
		
						commit
						16fb5437c7
					
				@ -230,9 +230,20 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
 | 
			
		||||
            if (graphicState.objId) {
 | 
			
		||||
              processed[graphicState.objId] = true;
 | 
			
		||||
            }
 | 
			
		||||
            var bm = graphicState.get('BM');
 | 
			
		||||
            if ((bm instanceof Name) && bm.name !== 'Normal') {
 | 
			
		||||
              return true;
 | 
			
		||||
 | 
			
		||||
            const bm = graphicState.get('BM');
 | 
			
		||||
            if (bm instanceof Name) {
 | 
			
		||||
              if (bm.name !== 'Normal') {
 | 
			
		||||
                return true;
 | 
			
		||||
              }
 | 
			
		||||
              continue;
 | 
			
		||||
            }
 | 
			
		||||
            if (bm !== undefined && Array.isArray(bm)) {
 | 
			
		||||
              for (let j = 0, jj = bm.length; j < jj; j++) {
 | 
			
		||||
                if ((bm[j] instanceof Name) && bm[j].name !== 'Normal') {
 | 
			
		||||
                  return true;
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user