mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
8eedb2afe2
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. |
||
---|---|---|
.. | ||
arvr | ||
audio | ||
physics | ||
physics_2d | ||
visual | ||
arvr_server.cpp | ||
arvr_server.h | ||
audio_server.cpp | ||
audio_server.h | ||
physics_2d_server.cpp | ||
physics_2d_server.h | ||
physics_server.cpp | ||
physics_server.h | ||
register_server_types.cpp | ||
register_server_types.h | ||
SCsub | ||
server_wrap_mt_common.h | ||
visual_server.cpp | ||
visual_server.h |