Sprite: Don't draw when opacity == 0
This commit is contained in:
		
							parent
							
								
									648684e4aa
								
							
						
					
					
						commit
						6e3b1d9466
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -322,6 +322,9 @@ void Sprite::draw()
 | 
				
			||||||
	if (p->bitmap->isDisposed())
 | 
						if (p->bitmap->isDisposed())
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!p->opacity)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (emptyFlashFlag)
 | 
						if (emptyFlashFlag)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue