diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-21 19:36:40 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-21 19:36:40 +0200 |
commit | 67b9d6eef2df5253657c89725195c58fe01b39f0 (patch) | |
tree | ad9ba50a0c057cd2b42b2988303398cc9b26707c /editor/icons/icon_editor_2d.png | |
parent | 1be30f35a68a9fb2c156ded45c8689cc44f26f29 (diff) |
Fix color_ramp indexing negative elements
The 'pos' variable passed to get_color() and get_offset() can be
negative if the color ramp itself is empty. This causes a lookup in an
empty position in the color Vector which leads to a crash.
We add a check so we never do a lookup in the color Vector if the
gradient is empty.
This fixes #10501
Diffstat (limited to 'editor/icons/icon_editor_2d.png')
0 files changed, 0 insertions, 0 deletions