mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Remove unnecessary assignments
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									aa5b6ed13e
								
							
						
					
					
						commit
						80fb8db31f
					
				
					 19 changed files with 31 additions and 56 deletions
				
			
		|  | @ -1396,14 +1396,12 @@ void RendererCanvasCull::canvas_item_add_triangle_array(RID p_item, const Vector | |||
| 	ERR_FAIL_COND(!p_bones.is_empty() && p_bones.size() != vertex_count * 4); | ||||
| 	ERR_FAIL_COND(!p_weights.is_empty() && p_weights.size() != vertex_count * 4); | ||||
| 
 | ||||
| 	Vector<int> indices = p_indices; | ||||
| 
 | ||||
| 	Item::CommandPolygon *polygon = canvas_item->alloc_command<Item::CommandPolygon>(); | ||||
| 	ERR_FAIL_NULL(polygon); | ||||
| 
 | ||||
| 	polygon->texture = p_texture; | ||||
| 
 | ||||
| 	polygon->polygon.create(indices, p_points, p_colors, p_uvs, p_bones, p_weights); | ||||
| 	polygon->polygon.create(p_indices, p_points, p_colors, p_uvs, p_bones, p_weights); | ||||
| 
 | ||||
| 	polygon->primitive = RS::PRIMITIVE_TRIANGLES; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wilson E. Alvarez
						Wilson E. Alvarez