diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-02 19:15:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-02 19:15:44 +0300 |
commit | ac45540a348ec8662e4e27002c64176c402fe549 (patch) | |
tree | 505778f4634aadd248f1c499fad72f28394b0780 /source/blender/blenlib/BLI_hash.hh | |
parent | 037e1ad140d5c0b57d54f64e32a00f7961b7cc17 (diff) |
Curves: add brush to add curves on surface
This adds a prototype for the first brush that can add new curves by
painting on a surface. Note that this can only be used when the curves
object has a surface object set in the properties panel.
The brush can take minimum distance into account. This allows
distributing curves with a somewhat consistent density.
Differential Revision: https://developer.blender.org/D14207
Diffstat (limited to 'source/blender/blenlib/BLI_hash.hh')
-rw-r--r-- | source/blender/blenlib/BLI_hash.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_hash.hh b/source/blender/blenlib/BLI_hash.hh index 25841180fcf..25d7cd6aaf8 100644 --- a/source/blender/blenlib/BLI_hash.hh +++ b/source/blender/blenlib/BLI_hash.hh @@ -148,6 +148,13 @@ template<> struct DefaultHash<float> { } }; +template<> struct DefaultHash<double> { + uint64_t operator()(double value) const + { + return *reinterpret_cast<uint64_t *>(&value); + } +}; + template<> struct DefaultHash<bool> { uint64_t operator()(bool value) const { |