mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:07:45 +00:00
Specify type of argument in Mobject.add
This commit is contained in:
parent
578427543c
commit
d44e248277
1 changed files with 1 additions and 1 deletions
|
|
@ -1023,7 +1023,7 @@ class ThreeDScene(Scene):
|
|||
default_frame_orientation = (-30, 70)
|
||||
always_depth_test = True
|
||||
|
||||
def add(self, *mobjects, set_depth_test: bool = True):
|
||||
def add(self, *mobjects: Mobject, set_depth_test: bool = True):
|
||||
for mob in mobjects:
|
||||
if set_depth_test and not mob.is_fixed_in_frame() and self.always_depth_test:
|
||||
mob.apply_depth_test()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue