You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Revert "Renamed plane's d to distance"
This reverts commit ec7b481170.
This was wrong, `d` is not a distance but the `d` constant in the
parametric equation `ax + by + cz = d` describing the plane.
This commit is contained in:
@@ -214,7 +214,7 @@ Error ResourceLoaderBinary::parse_variant(Variant &r_v) {
|
||||
v.normal.x = f->get_real();
|
||||
v.normal.y = f->get_real();
|
||||
v.normal.z = f->get_real();
|
||||
v.distance = f->get_real();
|
||||
v.d = f->get_real();
|
||||
r_v = v;
|
||||
} break;
|
||||
case VARIANT_QUAT: {
|
||||
@@ -1458,7 +1458,7 @@ void ResourceFormatSaverBinaryInstance::write_variant(FileAccess *f, const Varia
|
||||
f->store_real(val.normal.x);
|
||||
f->store_real(val.normal.y);
|
||||
f->store_real(val.normal.z);
|
||||
f->store_real(val.distance);
|
||||
f->store_real(val.d);
|
||||
|
||||
} break;
|
||||
case Variant::QUAT: {
|
||||
|
||||
Reference in New Issue
Block a user