mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	changed max point limit to 1 instead of 2
This commit is contained in:
		
							parent
							
								
									c4daac279b
								
							
						
					
					
						commit
						bcc0493a4a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -131,7 +131,7 @@ void Gradient::add_point(float p_offset, const Color &p_color) { | |||
| void Gradient::remove_point(int p_index) { | ||||
| 
 | ||||
| 	ERR_FAIL_INDEX(p_index, points.size()); | ||||
| 	ERR_FAIL_COND(points.size() <= 2); | ||||
| 	ERR_FAIL_COND(points.size() <= 1); | ||||
| 	points.remove(p_index); | ||||
| 	emit_signal(CoreStringNames::get_singleton()->changed); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 D00T24
						D00T24