godot/scene
Hein-Pieter van Braam bec8fd1732 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

(cherry picked from commit 67b9d6eef2)
2017-08-27 12:56:05 +02:00
..
2d Change order of Null check for ParallaxLayer 2017-08-22 15:17:59 +02:00
3d Exposed create_from_mesh in Navmesh 2017-08-27 12:22:37 +02:00
animation Revert "Fix autoplay animation starts from last editor state #8976" 2017-07-27 07:42:47 +02:00
audio Fix priority in sample players 2017-05-15 20:24:38 +02:00
gui Fixed not being able to scroll to eof 2017-08-27 12:48:33 +02:00
io Implement 32 bit IEEE float WAVE format 2017-07-30 14:39:51 -03:00
main [2.1] Add expand stretch/ascpect - no more black bars 2017-08-09 12:30:06 +03:00
resources Fix color_ramp indexing negative elements 2017-08-27 12:56:05 +02:00
register_scene_types.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
register_scene_types.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_string_names.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_string_names.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
SCsub Move other lone thirdparty files to thirdparty/misc 2017-05-26 23:39:47 +02:00