Merge pull request #470 from 3b1b/area_fix

fix get_anchors for VectorizedPoints
This commit is contained in:
Devin Neal 2019-03-10 12:08:27 -07:00 committed by GitHub
commit ac3740145a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -658,6 +658,8 @@ class VMobject(Mobject):
return self.points[nppcc - 1::nppcc]
def get_anchors(self):
if self.points.shape[0] == 1:
return self.points
return np.array(list(it.chain(*zip(
self.get_start_anchors(),
self.get_end_anchors(),