mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	Rename empty() to is_empty()
This commit is contained in:
		
							parent
							
								
									886571e0fc
								
							
						
					
					
						commit
						5b937d493f
					
				
					 289 changed files with 898 additions and 898 deletions
				
			
		| 
						 | 
				
			
			@ -340,7 +340,7 @@ void Sprite2DEditor::_convert_to_mesh_2d_node() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Sprite2DEditor::_convert_to_polygon_2d_node() {
 | 
			
		||||
	if (computed_outline_lines.empty()) {
 | 
			
		||||
	if (computed_outline_lines.is_empty()) {
 | 
			
		||||
		err_dialog->set_text(TTR("Invalid geometry, can't create polygon."));
 | 
			
		||||
		err_dialog->popup_centered();
 | 
			
		||||
		return;
 | 
			
		||||
| 
						 | 
				
			
			@ -398,7 +398,7 @@ void Sprite2DEditor::_convert_to_polygon_2d_node() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Sprite2DEditor::_create_collision_polygon_2d_node() {
 | 
			
		||||
	if (computed_outline_lines.empty()) {
 | 
			
		||||
	if (computed_outline_lines.is_empty()) {
 | 
			
		||||
		err_dialog->set_text(TTR("Invalid geometry, can't create collision polygon."));
 | 
			
		||||
		err_dialog->popup_centered();
 | 
			
		||||
		return;
 | 
			
		||||
| 
						 | 
				
			
			@ -420,7 +420,7 @@ void Sprite2DEditor::_create_collision_polygon_2d_node() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void Sprite2DEditor::_create_light_occluder_2d_node() {
 | 
			
		||||
	if (computed_outline_lines.empty()) {
 | 
			
		||||
	if (computed_outline_lines.is_empty()) {
 | 
			
		||||
		err_dialog->set_text(TTR("Invalid geometry, can't create light occluder."));
 | 
			
		||||
		err_dialog->popup_centered();
 | 
			
		||||
		return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue