mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #90748 from aaronfranke/fix-basis-scale-global
Fix incorrect name of internal Basis global scale getter
This commit is contained in:
@@ -293,7 +293,7 @@ Vector3 Basis::get_scale_abs() const {
|
||||
Vector3(rows[0][2], rows[1][2], rows[2][2]).length());
|
||||
}
|
||||
|
||||
Vector3 Basis::get_scale_local() const {
|
||||
Vector3 Basis::get_scale_global() const {
|
||||
real_t det_sign = SIGN(determinant());
|
||||
return det_sign * Vector3(rows[0].length(), rows[1].length(), rows[2].length());
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ struct _NO_DISCARD_ Basis {
|
||||
|
||||
Vector3 get_scale() const;
|
||||
Vector3 get_scale_abs() const;
|
||||
Vector3 get_scale_local() const;
|
||||
Vector3 get_scale_global() const;
|
||||
|
||||
void set_axis_angle_scale(const Vector3 &p_axis, real_t p_angle, const Vector3 &p_scale);
|
||||
void set_euler_scale(const Vector3 &p_euler, const Vector3 &p_scale, EulerOrder p_order = EulerOrder::YXZ);
|
||||
|
||||
Reference in New Issue
Block a user