summaryrefslogtreecommitdiffstats
path: root/scene/2d/parallax_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/parallax_2d.cpp')
-rw-r--r--scene/2d/parallax_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/parallax_2d.cpp b/scene/2d/parallax_2d.cpp
index 555f3b031c..aacab3213d 100644
--- a/scene/2d/parallax_2d.cpp
+++ b/scene/2d/parallax_2d.cpp
@@ -144,7 +144,7 @@ void Parallax2D::set_repeat_size(const Size2 &p_repeat_size) {
return;
}
- repeat_size = p_repeat_size.max(Vector2(0, 0));
+ repeat_size = p_repeat_size.maxf(0);
_update_process();
_update_repeat();