mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[3.2] Use instance and first arg in Basis is_equal_approx
Discards the second argument.
This commit is contained in:
parent
398a625a9f
commit
f201382a85
3 changed files with 6 additions and 4 deletions
|
@ -846,7 +846,7 @@ struct _VariantCall {
|
|||
VCALL_PTR0R(Basis, get_orthogonal_index);
|
||||
VCALL_PTR0R(Basis, orthonormalized);
|
||||
VCALL_PTR2R(Basis, slerp);
|
||||
VCALL_PTR2R(Basis, is_equal_approx); // TODO: Break compatibility in 4.0 to change this to an instance method (a.is_equal_approx(b) as VCALL_PTR1R) for consistency.
|
||||
VCALL_PTR2R(Basis, is_equal_approx);
|
||||
VCALL_PTR0R(Basis, get_rotation_quat);
|
||||
|
||||
VCALL_PTR0R(Transform, inverse);
|
||||
|
@ -1966,7 +1966,8 @@ void register_variant_methods() {
|
|||
ADDFUNC1R(BASIS, VECTOR3, Basis, xform_inv, VECTOR3, "v", varray());
|
||||
ADDFUNC0R(BASIS, INT, Basis, get_orthogonal_index, varray());
|
||||
ADDFUNC2R(BASIS, BASIS, Basis, slerp, BASIS, "b", REAL, "t", varray());
|
||||
ADDFUNC2R(BASIS, BOOL, Basis, is_equal_approx, BASIS, "b", REAL, "epsilon", varray(CMP_EPSILON)); // TODO: Replace in 4.0, see other TODO.
|
||||
// For complicated reasons, the epsilon argument is always discarded. See #45062.
|
||||
ADDFUNC2R(BASIS, BOOL, Basis, is_equal_approx, BASIS, "b", REAL, "epsilon", varray(CMP_EPSILON));
|
||||
ADDFUNC0R(BASIS, QUAT, Basis, get_rotation_quat, varray());
|
||||
|
||||
ADDFUNC0R(TRANSFORM, TRANSFORM, Transform, inverse, varray());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue