Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix fading (#1526)

Anton Ballmaiercd23cf1b0c7f
diff --git a/manim/animation/fading.py b/manim/animation/fading.py
index 30cc58c28..572a3e963 100644
--- a/manim/animation/fading.py
+++ b/manim/animation/fading.py
@@ -98,7 +98,7 @@ class _Fade(Transform):
The faded, shifted and scaled copy of the mobject.
"""
faded_mobject = self.mobject.copy()
- faded_mobject.set_opacity(0)
+ faded_mobject.fade(1)
direction_modifier = -1 if fadeIn and not self.point_target else 1
faded_mobject.shift(self.shift_vector * direction_modifier)
faded_mobject.scale(self.scale_factor)