You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user