You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Renamed plane's d to distance
This commit is contained in:
@@ -3173,7 +3173,7 @@ uint32_t Variant::hash() const {
|
||||
uint32_t hash = hash_djb2_one_float(reinterpret_cast<const Plane *>(_data._mem)->normal.x);
|
||||
hash = hash_djb2_one_float(reinterpret_cast<const Plane *>(_data._mem)->normal.y, hash);
|
||||
hash = hash_djb2_one_float(reinterpret_cast<const Plane *>(_data._mem)->normal.z, hash);
|
||||
return hash_djb2_one_float(reinterpret_cast<const Plane *>(_data._mem)->d, hash);
|
||||
return hash_djb2_one_float(reinterpret_cast<const Plane *>(_data._mem)->distance, hash);
|
||||
|
||||
} break;
|
||||
/*
|
||||
@@ -3521,7 +3521,7 @@ bool Variant::hash_compare(const Variant &p_variant) const {
|
||||
const Plane *r = reinterpret_cast<const Plane *>(p_variant._data._mem);
|
||||
|
||||
return (hash_compare_vector3(l->normal, r->normal)) &&
|
||||
(hash_compare_scalar(l->d, r->d));
|
||||
(hash_compare_scalar(l->distance, r->distance));
|
||||
} break;
|
||||
|
||||
case AABB: {
|
||||
|
||||
Reference in New Issue
Block a user