You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Polygon2D
-=-=-=-=- Another gift for those who make 2D games: -Edit polygons, concave or convex, color them, texture them and uv-map them -Corresponding editor -Can have a custom pivot, so they are compatible with bones and IK
This commit is contained in:
@@ -3432,7 +3432,7 @@ void VisualServerRaster::canvas_item_add_triangle_array(RID p_item, const Vector
|
||||
ERR_FAIL_COND(!canvas_item);
|
||||
|
||||
int ps = p_points.size();
|
||||
ERR_FAIL_COND(!p_colors.empty() && p_colors.size()!=ps);
|
||||
ERR_FAIL_COND(!p_colors.empty() && p_colors.size()!=ps && p_colors.size()!=1);
|
||||
ERR_FAIL_COND(!p_uvs.empty() && p_uvs.size()!=ps);
|
||||
|
||||
Vector<int> indices = p_indices;
|
||||
|
||||
Reference in New Issue
Block a user