PR #3718 changed the behavior of Mobject.put_start_and_end_on when start == end, however the assigment to self.points was incorrect. The existing code assigned the Point3D directly to self.points, that then becomes an array with shape (3,), while instead it should really have shape (1, 3).
This commit fixes the incorrect code and associated test.
Motivation and Explanation: Why and how do your changes improve the library?
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist
[ ] The PR title is descriptive enough for the changelog, and the PR is labeled correctly
[ ] If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
[ ] If applicable: newly added functions and classes are tested
Overview: What does this pull request change?
PR #3718 changed the behavior of
Mobject.put_start_and_end_on
whenstart == end
, however the assigment toself.points
was incorrect. The existing code assigned the Point3D directly toself.points
, that then becomes an array with shape(3,)
, while instead it should really have shape(1, 3)
.This commit fixes the incorrect code and associated test.
Motivation and Explanation: Why and how do your changes improve the library?
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist