Remove pointless check for no texture, fixes #7298
This commit is contained in:
parent
aff57a613b
commit
95a9e51975
|
@ -669,7 +669,7 @@ void VisualServerCanvas::canvas_item_add_polygon(RID p_item, const Vector<Point2
|
||||||
int color_size = p_colors.size();
|
int color_size = p_colors.size();
|
||||||
int uv_size = p_uvs.size();
|
int uv_size = p_uvs.size();
|
||||||
ERR_FAIL_COND(color_size != 0 && color_size != 1 && color_size != pointcount);
|
ERR_FAIL_COND(color_size != 0 && color_size != 1 && color_size != pointcount);
|
||||||
ERR_FAIL_COND(uv_size != 0 && (uv_size != pointcount || !p_texture.is_valid()));
|
ERR_FAIL_COND(uv_size != 0 && (uv_size != pointcount));
|
||||||
#endif
|
#endif
|
||||||
Vector<int> indices = Geometry::triangulate_polygon(p_points);
|
Vector<int> indices = Geometry::triangulate_polygon(p_points);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue