A community-maintained Python framework for creating mathematical animations.
Fix opengl_mobject.is_off_screen right-bounds check (#4953)
GniLudio6d24e4be6c30
diff --git a/manim/mobject/opengl/opengl_mobject.py b/manim/mobject/opengl/opengl_mobject.pyindex 8a8714bba..50b4f42c4 100644--- a/manim/mobject/opengl/opengl_mobject.py+++ b/manim/mobject/opengl/opengl_mobject.py@@ -1947,7 +1947,7 @@ class OpenGLMobject:def is_off_screen(self) -> bool:if self.get_left()[0] > config.frame_x_radius:return True- if self.get_right()[0] < config.frame_x_radius:+ if self.get_right()[0] < -config.frame_x_radius:return Trueif self.get_bottom()[1] > config.frame_y_radius:return True