Merge pull request #1419 from JWro/patch-1

Fix init of Elbow super class
This commit is contained in:
Grant Sanderson 2021-04-08 14:22:47 -07:00 committed by GitHub
commit 22d9c57f60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -569,7 +569,7 @@ class Elbow(VMobject):
} }
def __init__(self, **kwargs): def __init__(self, **kwargs):
super().__init__(self, **kwargs) super().__init__(**kwargs)
self.set_points_as_corners([UP, UP + RIGHT, RIGHT]) self.set_points_as_corners([UP, UP + RIGHT, RIGHT])
self.set_width(self.width, about_point=ORIGIN) self.set_width(self.width, about_point=ORIGIN)
self.rotate(self.angle, about_point=ORIGIN) self.rotate(self.angle, about_point=ORIGIN)