godot/scene/3d
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
..
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
area.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
area.h Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
arvr_nodes.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
arvr_nodes.h Added ARVRAnchor support and a few small enhancements 2017-08-03 18:58:05 +10:00
audio_stream_player_3d.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
audio_stream_player_3d.h -Fix for multiple reflection probes causing issues. 2017-07-15 18:42:06 -03:00
bone_attachment.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
bone_attachment.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
camera.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
camera.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
character_camera.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
character_camera.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
collision_object.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
collision_object.h expose missing CollisionShape API for CollisionObject 2017-07-24 20:29:49 +02:00
collision_polygon.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
collision_polygon.h Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
collision_shape.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
collision_shape.h Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
gi_probe.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gi_probe.h Few small GI Probe fixes 2017-07-29 00:04:29 -03:00
immediate_geometry.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
immediate_geometry.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
interpolated_camera.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
interpolated_camera.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
light.cpp Merge pull request #10351 from neikeq/enums-are-for-the-weak 2017-08-21 19:56:08 -03:00
light.h -Fix all shadow and culling related issues, fixes #9330 2017-08-19 20:07:21 -03:00
listener.cpp -Added proper access to depth texture from shader 2017-06-07 18:20:04 -03:00
listener.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
mesh_instance.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
mesh_instance.h tagents --> tangents 2017-07-26 15:14:52 +07:00
multimesh_instance.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
multimesh_instance.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
navigation.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
navigation.h Moved member variables from constructor to initialization list 2017-08-08 21:43:19 -04:00
navigation_mesh.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
navigation_mesh.h -Added proper access to depth texture from shader 2017-06-07 18:20:04 -03:00
particles.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
particles.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
path.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
path.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
physics_body.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
physics_body.h Warn about resizing a rigidbody (2D or 3D), covers the most common cases, closes #7615 2017-08-05 16:06:15 -03:00
physics_joint.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
physics_joint.h Makes all Godot API's methods Lower Case 2017-08-07 18:24:35 +07:00
portal.cpp -Renamed GlobalConfig to ProjectSettings, makes more sense. 2017-07-19 17:06:03 -03:00
portal.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
position_3d.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
position_3d.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
proximity_group.cpp Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
proximity_group.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
ray_cast.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
ray_cast.h Refactor layer_mask to collision_layer 2017-06-14 10:58:34 +07:00
reflection_probe.cpp ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
reflection_probe.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
remote_transform.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
remote_transform.h Added the following features to RemoteTransform and RemoteTransform2D: 2017-07-05 16:29:48 -04:00
room_instance.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
room_instance.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
scenario_fx.cpp Removes type information from method binds 2017-08-10 07:17:50 +02:00
scenario_fx.h -Restored support for Canvas BG mode on Environment 2017-06-24 08:58:27 -03:00
skeleton.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
skeleton.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
spatial.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
spatial.h Add .to_local/.to_global methods on Node2D and Spatial 2017-07-23 14:37:26 +03:00
spatial_indexer.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
spatial_indexer.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
spatial_velocity_tracker.cpp Lots of work on Audio & Physics engine: 2017-07-15 08:32:34 -03:00
spatial_velocity_tracker.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
sprite_3d.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
sprite_3d.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
vehicle_body.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
vehicle_body.h Synchronize parameter names in definition and declaration 2017-08-16 17:22:23 +02:00
visibility_notifier.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visibility_notifier.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
visual_instance.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_instance.h -Fix all shadow and culling related issues, fixes #9330 2017-08-19 20:07:21 -03:00