diff options
| author | Juan Linietsky | 2014-07-07 17:44:21 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-07-07 17:44:21 -0300 |
| commit | 9ff6d55822647c87eef392147ea15641d0922d47 (patch) | |
| tree | 4a132cccc1ecb9f7de27a94475363fcf527986c6 /servers/visual/visual_server_raster.cpp | |
| parent | 3d68949a1cc41b4865618bddde23122f66764ee1 (diff) | |
| download | godot-9ff6d55822647c87eef392147ea15641d0922d47.tar.gz godot-9ff6d55822647c87eef392147ea15641d0922d47.tar.zst godot-9ff6d55822647c87eef392147ea15641d0922d47.zip | |
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
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
| -rw-r--r-- | servers/visual/visual_server_raster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index f171b47e9..7c1f03b71 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -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; |
