mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Stretch to fit should apply to all 3 dimensions
This commit is contained in:
parent
81cedfbfda
commit
46bcf938ed
1 changed files with 2 additions and 2 deletions
|
@ -618,8 +618,8 @@ class Mobject(Container):
|
|||
raise Warning("Attempting to replace mobject with no points")
|
||||
return self
|
||||
if stretch:
|
||||
self.stretch_to_fit_width(mobject.get_width())
|
||||
self.stretch_to_fit_height(mobject.get_height())
|
||||
for i in range(self.dim):
|
||||
self.rescale_to_fit(mobject.length_over_dim(i), i, stretch=True)
|
||||
else:
|
||||
self.rescale_to_fit(
|
||||
mobject.length_over_dim(dim_to_match),
|
||||
|
|
Loading…
Add table
Reference in a new issue