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:
parent
3d68949a1c
commit
9ff6d55822
16 changed files with 1631 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue