diff options
| author | karroffel | 2018-05-03 14:40:55 +0200 |
|---|---|---|
| committer | karroffel | 2018-05-03 17:00:21 +0200 |
| commit | bf24d570bb8be8695691d355913d470d37d59d43 (patch) | |
| tree | 40e06986078e87904b25459cae8cb38f1f9a487e /modules/csg/csg_shape.cpp | |
| parent | 2e474f42b8183bc1f8255307f4c662a3cbc49135 (diff) | |
| download | godot-bf24d570bb8be8695691d355913d470d37d59d43.tar.gz godot-bf24d570bb8be8695691d355913d470d37d59d43.tar.zst godot-bf24d570bb8be8695691d355913d470d37d59d43.zip | |
updated OAHashMap to use robinhood hashing
Diffstat (limited to 'modules/csg/csg_shape.cpp')
| -rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 279edbcec..1f2f12f54 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -157,7 +157,7 @@ void CSGShape::_update_shape() { for (int j = 0; j < 3; j++) { Vector3 v = n->faces[i].vertices[j]; Vector3 add; - if (vec_map.lookup(v, &add)) { + if (vec_map.lookup(v, add)) { add += p.normal; } else { add = p.normal; @@ -233,7 +233,7 @@ void CSGShape::_update_shape() { Vector3 normal = p.normal; - if (n->faces[i].smooth && vec_map.lookup(v, &normal)) { + if (n->faces[i].smooth && vec_map.lookup(v, normal)) { normal.normalize(); } |
