fix get_anchors for VMobjects

This commit is contained in:
Devin
2019-03-10 11:56:04 -07:00
parent c12d1cb548
commit 992d364913

View File

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