You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add is_zero_approx methods to Vector{2,3}
This commit is contained in:
@@ -225,7 +225,7 @@ void PivotTransform::ComputePivotTransform() {
|
||||
Sp.set_origin(scaling_pivot);
|
||||
|
||||
// Scaling node
|
||||
if (!scaling.is_equal_approx(Vector3())) {
|
||||
if (!scaling.is_zero_approx()) {
|
||||
S.scale(scaling);
|
||||
} else {
|
||||
S.scale(Vector3(1, 1, 1));
|
||||
|
||||
Reference in New Issue
Block a user