Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-03-02 19:15:44 +0300
committerJacques Lucke <jacques@blender.org>2022-03-02 19:15:44 +0300
commitac45540a348ec8662e4e27002c64176c402fe549 (patch)
tree505778f4634aadd248f1c499fad72f28394b0780 /source/blender/blenlib
parent037e1ad140d5c0b57d54f64e32a00f7961b7cc17 (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')
-rw-r--r--source/blender/blenlib/BLI_hash.hh7
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
{