Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added a check for `0` in :meth:`~.round_corners` (#1584)

KingWampy8f0b12aa8ea8
diff --git a/manim/mobject/geometry.py b/manim/mobject/geometry.py
index 669ecbd19..4e21492b6 100644
--- a/manim/mobject/geometry.py
+++ b/manim/mobject/geometry.py
@@ -1628,6 +1628,9 @@ class Polygram(VMobject, metaclass=ConvertToOpenGL):
:class:`RoundedRectangle`
"""
+ if radius == 0:
+ return self
+
new_points = []
for vertices in self.get_vertex_groups():