godot/scene/resources
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
..
default_theme Fix theme_data.h formatting via make_header.py 2017-05-26 19:11:43 +02:00
animation.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
animation.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
audio_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
audio_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
audio_stream_resampled.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
audio_stream_resampled.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
baked_light.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
baked_light.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
bit_mask.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
bit_mask.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
bounds.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
bounds.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
box_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
box_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
canvas.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
canvas.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
capsule_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
capsule_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
capsule_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
capsule_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
circle_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
circle_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
color_ramp.cpp Fix color_ramp indexing negative elements 2017-08-27 12:56:05 +02:00
color_ramp.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
concave_polygon_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
concave_polygon_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
concave_polygon_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
concave_polygon_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
convex_polygon_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
convex_polygon_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
convex_polygon_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
convex_polygon_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
curve.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
curve.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
dynamic_font.cpp Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-18 12:10:21 -03:00
dynamic_font.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
dynamic_font_stb.cpp Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-18 12:10:21 -03:00
dynamic_font_stb.h Move other lone thirdparty files to thirdparty/misc 2017-05-26 23:39:47 +02:00
environment.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
environment.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
event_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
event_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
font.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
font.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
gibberish_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
gibberish_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
material.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
material.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
mesh.cpp GDScript bindings for various missing Mesh functions. 2017-05-27 00:42:59 +02:00
mesh.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
mesh_data_tool.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
mesh_data_tool.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
mesh_library.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
mesh_library.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
multimesh.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
multimesh.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
packed_scene.cpp Correct hash behavior for floating point numbers 2017-08-20 23:44:28 +02:00
packed_scene.h Correct hash behavior for floating point numbers 2017-08-20 23:44:28 +02:00
plane_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
plane_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
polygon_path_finder.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
polygon_path_finder.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
ray_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
ray_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
rectangle_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
rectangle_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
room.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
room.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sample.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sample.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sample_library.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sample_library.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_format_text.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_format_text.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_preloader.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
scene_preloader.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
segment_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
segment_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shader.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shader.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shader_graph.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shader_graph.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_line_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
shape_line_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
space_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
space_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sphere_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
sphere_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
style_box.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
style_box.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
surface_tool.cpp Bind some useful methods in SurfaceTool to GDScript 2017-08-13 17:55:40 +02:00
surface_tool.h Move other lone thirdparty files to thirdparty/misc 2017-05-26 23:39:47 +02:00
texture.cpp Fix AtlasTexture + Sprite3D using the wrong UV region 2017-08-24 23:05:49 +02:00
texture.h Fix AtlasTexture + Sprite3D using the wrong UV region 2017-08-24 23:05:49 +02:00
theme.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
theme.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
tile_set.cpp Add one-way collision to tile-set/tile-map 2017-06-17 22:26:50 +02:00
tile_set.h Add one-way collision to tile-set/tile-map 2017-06-17 22:26:50 +02:00
video_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
video_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
world.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
world.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
world_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00
world_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:45:24 +02:00