godot/servers
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
..
arvr
audio
physics Merge pull request #16757 from AndreaCatania/kinpush 2018-02-20 15:41:10 +01:00
physics_2d Bring back Vector2.cross() 2018-03-07 21:10:31 +01:00
visual Fix crash in canvas_item_add_polyline when passing more points than colors 2018-03-19 19:22:38 +01:00
arvr_server.cpp
arvr_server.h Fix typos with codespell 2018-02-21 19:46:06 +01:00
audio_server.cpp AudioServer emit bus_layout_changed signal when adding, moving or deleting a bus 2018-02-23 23:42:57 +01:00
audio_server.h
physics_2d_server.cpp
physics_2d_server.h
physics_server.cpp Fixed physics server typo 2018-02-27 08:42:09 +01:00
physics_server.h Merge pull request #16757 from AndreaCatania/kinpush 2018-02-20 15:41:10 +01:00
register_server_types.cpp Deprecated Godot 3D physics engine 2018-02-26 12:51:30 +01:00
register_server_types.h
SCsub
server_wrap_mt_common.h
visual_server.cpp [DOCS] Sync classref with current source 2018-02-25 15:14:25 +07:00
visual_server.h 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00