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")
|
raise Warning("Attempting to replace mobject with no points")
|
||||||
return self
|
return self
|
||||||
if stretch:
|
if stretch:
|
||||||
self.stretch_to_fit_width(mobject.get_width())
|
for i in range(self.dim):
|
||||||
self.stretch_to_fit_height(mobject.get_height())
|
self.rescale_to_fit(mobject.length_over_dim(i), i, stretch=True)
|
||||||
else:
|
else:
|
||||||
self.rescale_to_fit(
|
self.rescale_to_fit(
|
||||||
mobject.length_over_dim(dim_to_match),
|
mobject.length_over_dim(dim_to_match),
|
||||||
|
|
Loading…
Add table
Reference in a new issue