mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Remove @staticmethod from @wraps functions
This commit is contained in:
parent
42f2461acb
commit
53f19b6620
2 changed files with 1 additions and 4 deletions
|
@ -528,7 +528,6 @@ class Mobject(object):
|
|||
|
||||
# Copying and serialization
|
||||
|
||||
@staticmethod
|
||||
def stash_mobject_pointers(func: Callable):
|
||||
@wraps(func)
|
||||
def wrapper(self, *args, **kwargs):
|
||||
|
@ -1735,7 +1734,6 @@ class Mobject(object):
|
|||
|
||||
# Operations touching shader uniforms
|
||||
|
||||
@staticmethod
|
||||
def affects_shader_info_id(func: Callable):
|
||||
@wraps(func)
|
||||
def wrapper(self):
|
||||
|
|
|
@ -904,7 +904,7 @@ class VMobject(Mobject):
|
|||
if self.has_fill():
|
||||
tri1 = mobject1.get_triangulation()
|
||||
tri2 = mobject2.get_triangulation()
|
||||
if len(tri1) != len(tri1) or not (tri1 == tri2).all():
|
||||
if len(tri1) != len(tri2) or not (tri1 == tri2).all():
|
||||
self.refresh_triangulation()
|
||||
return self
|
||||
|
||||
|
@ -1019,7 +1019,6 @@ class VMobject(Mobject):
|
|||
self.needs_new_triangulation = False
|
||||
return tri_indices
|
||||
|
||||
@staticmethod
|
||||
def triggers_refreshed_triangulation(func: Callable):
|
||||
@wraps(func)
|
||||
def wrapper(self, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue