mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
parent
3d9b05ad4a
commit
10f6c01b9c
68 changed files with 142 additions and 146 deletions
|
|
@ -5360,7 +5360,7 @@ void Node3DEditorViewport::update_transform(bool p_shift) {
|
|||
}
|
||||
|
||||
static const float orthogonal_threshold = Math::cos(Math::deg_to_rad(85.0f));
|
||||
bool axis_is_orthogonal = ABS(plane.normal.dot(global_axis)) < orthogonal_threshold;
|
||||
bool axis_is_orthogonal = Math::abs(plane.normal.dot(global_axis)) < orthogonal_threshold;
|
||||
|
||||
double angle = 0.0f;
|
||||
if (axis_is_orthogonal) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue