virtualx-engine/scene/resources
Hein-Pieter van Braam 67b9d6eef2 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
2017-08-21 19:36:40 +02:00
..
default_theme Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
animation.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
animation.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
audio_stream_resampled.cpp -Renamed GlobalConfig to ProjectSettings, makes more sense. 2017-07-19 17:06:03 -03:00
audio_stream_resampled.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
audio_stream_sample.cpp Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
audio_stream_sample.h Reworked translation system 2017-06-28 17:01:35 -03:00
bit_mask.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
bit_mask.h Fix two typos from previous commit 2017-05-17 18:45:56 +02:00
bounds.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
bounds.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
box_shape.cpp renamed all Rect3.pos to Rect3.position 2017-06-09 15:54:02 +02:00
box_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
canvas.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
canvas.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
capsule_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
capsule_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
capsule_shape_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
capsule_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
circle_shape_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
circle_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
color_ramp.cpp Fix color_ramp indexing negative elements 2017-08-21 19:36:40 +02:00
color_ramp.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
concave_polygon_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
concave_polygon_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
concave_polygon_shape_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
concave_polygon_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
convex_polygon_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
convex_polygon_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
convex_polygon_shape_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
convex_polygon_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
curve.cpp Add object type hint for docs 2017-07-19 02:03:34 +07:00
curve.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
dynamic_font.cpp Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-17 19:51:13 -03:00
dynamic_font.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
dynamic_font_stb.cpp Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-17 19:51:13 -03:00
dynamic_font_stb.h Move other lone thirdparty files to thirdparty/misc 2017-04-28 21:19:25 +02:00
environment.cpp Fix console warning: Condition !env is true 2017-08-14 14:48:35 +03:00
environment.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
font.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
font.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
gibberish_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
gibberish_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
material.cpp Oops, fixed wrong color masking problem. Closes #10149 2017-08-17 18:33:59 -03:00
material.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
mesh.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
mesh.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
mesh_data_tool.cpp Fixes method definitions with extra number of arguments 2017-08-10 07:17:51 +02:00
mesh_data_tool.h -Added proper access to depth texture from shader 2017-06-07 18:20:04 -03:00
mesh_library.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
mesh_library.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
multimesh.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
multimesh.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
packed_scene.cpp Make sure local to scene resources are initialized after loading all nodes, fixes #9438 2017-08-18 08:26:41 -03:00
packed_scene.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
plane_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
plane_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
polygon_path_finder.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
polygon_path_finder.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
primitive_meshes.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
primitive_meshes.h -Ability to set default import presets for type 2017-07-23 18:50:25 -03:00
ray_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
ray_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
rectangle_shape_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
rectangle_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
room.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
room.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
scene_format_text.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
scene_format_text.h Reworked translation system 2017-06-28 17:01:35 -03:00
SCsub Move other lone thirdparty files to thirdparty/misc 2017-04-28 21:19:25 +02:00
segment_shape_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
segment_shape_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
shader.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
shader.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
shader_graph.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
shader_graph.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
shape.cpp -Fixed SCREEN_TEXTURE and other related 2D shader parameters. 2017-06-26 22:58:46 -03:00
shape.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
shape_2d.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
shape_2d.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
shape_line_2d.cpp renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
shape_line_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
sky_box.cpp ProceduralSky now regenerates in a thread (the second time, first does not), closes #9138 2017-08-18 19:16:32 -03:00
sky_box.h ProceduralSky now regenerates in a thread (the second time, first does not), closes #9138 2017-08-18 19:16:32 -03:00
space_2d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
space_2d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
sphere_shape.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
sphere_shape.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
style_box.cpp Merge pull request #10444 from toger5/styleBoxFlat_corner_detail_value_limitation 2017-08-19 17:56:48 +02:00
style_box.h Merge pull request #10265 from leezh/patchnine_stylebox 2017-08-16 18:16:23 +02:00
surface_tool.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
surface_tool.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
texture.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
texture.h Style: Apply clang-format on all files 2017-07-30 22:53:40 +02:00
theme.cpp styleBoxFlat removed light, dark color entirely 2017-08-15 20:11:36 +02:00
theme.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
tile_set.cpp Fixes method definitions with extra number of arguments 2017-08-10 07:17:51 +02:00
tile_set.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
video_stream.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
video_stream.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
world.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
world.h Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
world_2d.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
world_2d.h -Renamed GlobalConfig to ProjectSettings, makes more sense. 2017-07-19 17:06:03 -03:00