godot/scene
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
..
2d Many fixes to make exported scenes work better, still buggy. 2017-02-15 08:34:02 -03:00
3d a ton of bug fixes to the renderer 2017-02-16 08:55:43 -03:00
animation Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
audio Rename the _MD macro to D_METHOD 2017-02-13 12:50:02 +01:00
gui Spinbox: don't ignore double clicks. 2017-02-14 00:57:49 +01:00
io Lot of work in new importer, importing textures now works. 2017-02-01 09:46:36 -03:00
main SceneTreeTimer: Ability to set pause mode 2017-02-15 08:02:08 +01:00
resources Correct hash behavior for floating point numbers 2017-02-16 18:44:29 +01:00
register_scene_types.cpp Merge pull request #7352 from Zylann/polyline 2017-02-12 23:30:04 +01:00
register_scene_types.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
scene_string_names.cpp Renamed most signals so they refer to: 2017-01-12 00:51:08 -03:00
scene_string_names.h Renamed most signals so they refer to: 2017-01-12 00:51:08 -03:00
SCsub style: Various other PEP8 fixes in Python files 2016-11-01 00:35:16 +01:00