Return unit normal as 1d vector

This commit is contained in:
Grant Sanderson
2021-01-12 11:13:41 -10:00
parent 0d238417cb
commit ca1c2f7797

View File

@ -595,7 +595,7 @@ class VMobject(Mobject):
def get_unit_normal(self, recompute=False): def get_unit_normal(self, recompute=False):
if not recompute: if not recompute:
return self.data["unit_normal"] return self.data["unit_normal"][0]
if self.get_num_points() < 3: if self.get_num_points() < 3:
return OUT return OUT