godot/servers/visual
robfram 8eedb2afe2 Fix crash in `canvas_item_add_polyline` when passing more points than colors
When `p_points.size() > p_colors.size()`, it crashed with invalid
array access to `p_colors`. Also, when `p_colors` was an empty
`Vector` it crashed due a missing `else` checking the `size`
condition, as the code handling that special case exists.

This PR fixes the missing `else` for `p_colors.size == 0` and,
following the `canvas_item_add_multiline` spirit, it only uses the
first color for the whole polyline if points and colors differ in
size.

Fix #17621.
2018-03-19 19:22:38 +01:00
..
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
default_mouse_cursor.xpm GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
rasterizer.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rasterizer.h 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00
shader_language.cpp Hinted shader uniforms can have a default value 2018-03-15 15:23:40 +01:00
shader_language.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_types.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_canvas.cpp Fix crash in `canvas_item_add_polyline` when passing more points than colors 2018-03-19 19:22:38 +01:00
visual_server_canvas.h 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00
visual_server_global.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_global.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_light_baker.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_light_baker.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_raster.cpp Fixed several leaks in VisualServerScene, RasterizerSceneGLES3 and RasterizerGLES3 2018-03-13 00:22:08 -04:00
visual_server_raster.h 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00
visual_server_scene.cpp Merge pull request #17248 from Cygon/implement-extra-culling-margin 2018-03-15 23:45:59 +01:00
visual_server_scene.h Fix inconsistencies and typos in argument names 2018-02-01 16:47:20 +01:00
visual_server_viewport.cpp Fix wrong viewport transparent-bg 2018-01-18 19:11:07 +01:00
visual_server_viewport.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_wrap_mt.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_wrap_mt.h 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00