mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Moving the frame_center of camera was not working. This fixes it, but I suspect there is a need for a deeper fix where everything is handled in transform_points_pre_display properly for the various camera classes
This commit is contained in:
parent
52054571ab
commit
5dcb113996
1 changed files with 2 additions and 0 deletions
|
@ -332,6 +332,8 @@ class Camera(object):
|
|||
points = self.transform_points_pre_display(
|
||||
vmobject, vmobject.points
|
||||
)
|
||||
# TODO, shouldn't this be handled in transform_points_pre_display?
|
||||
points = points - self.get_frame_center()
|
||||
if len(points) == 0:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue