godot/tools/editor/plugins
Hein-Pieter van Braam b696beea65 Correct hash behavior for floating point numbers
This fixes HashMap where a key or part of a key is a floating point
number. To fix this the following has been done:

* HashMap now takes an extra template argument Comparator. This class
gets used to compare keys. The default Comperator now works correctly
for common types and floating point numbets.

* Variant implements ::hash_compare() now. This function implements
nan-safe comparison for all types with components that contain floating
point numbers.

* Variant now has a VariantComparator which uses Variant::hash_compare()
safely compare floating point components of variant's types.

* The hash functions for floating point numbers will now normalize NaN
values so that all floating point numbers that are NaN hash to the same
value.

C++ module writers that want to use HashMap internally in their modules
can now also safeguard against this crash by defining their on
Comperator class that safely compares their types.

GDScript users, or writers of modules that don't use HashMap internally
in their modules don't need to do anything.

This fixes #7354 and fixes #6947.
2017-02-16 18:44:29 +01:00
..
animation_player_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
animation_player_editor_plugin.h Added warning when removing animations 2017-01-25 21:22:16 +01:00
animation_tree_editor_plugin.cpp Style: Fix statements ending with ';;' 2017-01-16 08:49:52 +01:00
animation_tree_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
baked_light_baker.cpp Correct hash behavior for floating point numbers 2017-02-16 18:44:29 +01:00
baked_light_baker.h Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
baked_light_baker_cmpxchg.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
baked_light_editor_plugin.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
baked_light_editor_plugin.h Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector 2017-01-07 18:26:38 -03:00
camera_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
camera_editor_plugin.h Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
canvas_item_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
canvas_item_editor_plugin.h Fix weird scrollbar appearance on 2D editor (3.0 master) 2017-01-25 23:41:19 +09:00
collision_polygon_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
collision_polygon_2d_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
collision_polygon_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
collision_polygon_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
collision_shape_2d_editor_plugin.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
collision_shape_2d_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
color_ramp_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
color_ramp_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
cube_grid_theme_editor_plugin.cpp Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
cube_grid_theme_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
editor_preview_plugins.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
editor_preview_plugins.h Oops! Audio engine has vanished :D 2017-01-15 16:07:51 -03:00
gi_probe_editor_plugin.cpp Remove memdelete of button in GIProbeEditor exit 2017-02-09 10:45:55 -05:00
gi_probe_editor_plugin.h Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
item_list_editor_plugin.cpp Removed the set_child_rect() in AcceptDialog. AcceptDialog now works as a container! 2017-01-10 01:49:55 -03:00
item_list_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
light_occluder_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
light_occluder_2d_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
line_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
line_2d_editor_plugin.h Added Line2D node that draws a polygon-based line 2017-01-15 00:44:46 +01:00
material_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
material_editor_plugin.h Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
mesh_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
mesh_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
mesh_instance_editor_plugin.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
mesh_instance_editor_plugin.h Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
multimesh_editor_plugin.cpp Overloaded basic math funcs (double and float variants). Use real_t rather than float or double in generic functions (core/math) whenever possible. 2017-01-16 13:36:33 -06:00
multimesh_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
navigation_polygon_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
navigation_polygon_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
particles_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
particles_2d_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
particles_editor_plugin.cpp Style: Fix statements ending with ';;' 2017-01-16 08:49:52 +01:00
particles_editor_plugin.h Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector 2017-01-07 18:26:38 -03:00
path_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
path_2d_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
path_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
path_editor_plugin.h Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
polygon_2d_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
polygon_2d_editor_plugin.h some class renames 2017-01-12 18:28:12 -03:00
resource_preloader_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
resource_preloader_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
rich_text_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
rich_text_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
sample_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
sample_editor_plugin.h Oops! Audio engine has vanished :D 2017-01-15 16:07:51 -03:00
sample_library_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
sample_library_editor_plugin.h Oops! Audio engine has vanished :D 2017-01-15 16:07:51 -03:00
sample_player_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
sample_player_editor_plugin.h Oops! Audio engine has vanished :D 2017-01-15 16:07:51 -03:00
script_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
script_editor_plugin.h Sort settings for scripts in the editor 2017-02-02 14:31:01 +02:00
script_text_editor.cpp Fixed line lenght guideline drawing with color option 2017-01-28 14:36:57 +00:00
script_text_editor.h Type renames: 2017-01-11 00:52:51 -03:00
SCsub Reorder the folders in tools to prepare moving tools/editor 2017-02-09 00:08:27 +01:00
shader_editor_plugin.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
shader_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
shader_graph_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
shader_graph_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
spatial_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
spatial_editor_plugin.h Change camera default rotation 2017-01-17 02:23:23 +09:00
sprite_frames_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
sprite_frames_editor_plugin.h renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input 2017-01-08 16:28:12 -03:00
stream_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
stream_editor_plugin.h Oops! Audio engine has vanished :D 2017-01-15 16:07:51 -03:00
style_box_editor_plugin.cpp Style: Fix whole-line commented code 2017-01-14 14:52:23 +01:00
style_box_editor_plugin.h Finish renaming *Frame GUI classes to *Rect 2017-01-14 10:52:54 +01:00
texture_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
texture_editor_plugin.h Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
texture_region_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
texture_region_editor_plugin.h Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
theme_editor_plugin.cpp Style: Fix statements ending with ';;' 2017-01-16 08:49:52 +01:00
theme_editor_plugin.h Finish renaming *Frame GUI classes to *Rect 2017-01-14 10:52:54 +01:00
tile_map_editor_plugin.cpp Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
tile_map_editor_plugin.h Type renames: 2017-01-11 00:52:51 -03:00
tile_set_editor_plugin.cpp Style: Cleanups, added headers, renamed files 2017-01-16 08:04:23 +01:00
tile_set_editor_plugin.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00