virtualx-engine/scene/resources
Hein-Pieter van Braam cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
..
default_theme Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
animation.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
dynamic_font.h ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02: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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
material.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
mesh.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
mesh.h ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
multimesh.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
packed_scene.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02: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 Removed unnecessary assignments 2017-08-21 15:15:55 -04: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 Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
shader.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
shader_graph.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
shader_graph.h Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
shape.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02: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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02: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 fixed crash styleBoxTexture binding issue 2017-08-22 22:11:41 +02:00
style_box.h added utility funtions for expand margins (in styleBox) 2017-08-21 23:07:08 +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 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
texture.h Style: Apply clang-format on all files 2017-07-30 22:53:40 +02:00
theme.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +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