mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
34bcace70a
commit
df6d2682d1
2 changed files with 2 additions and 2 deletions
|
|
@ -1943,7 +1943,7 @@ class Mobject:
|
|||
def put_start_and_end_on(self, start: Point3DLike, end: Point3DLike) -> Self:
|
||||
current_start, current_end = self.get_start_and_end()
|
||||
current_vector = current_end - current_start
|
||||
if np.all(current_vector == 0):
|
||||
if np.all(current_vector == 0):
|
||||
warnings.warn(
|
||||
"put_start_and_end_on has been called on a closed loop or zero-length mobject. "
|
||||
f"{type(self).__name__} will be shifted to start point instead."
|
||||
|
|
|
|||
|
|
@ -2137,7 +2137,7 @@ class OpenGLMobject:
|
|||
def put_start_and_end_on(self, start: Point3DLike, end: Point3DLike) -> Self:
|
||||
current_start, current_end = self.get_start_and_end()
|
||||
current_vector = current_end - current_start
|
||||
if np.all(current_vector == 0):
|
||||
if np.all(current_vector == 0):
|
||||
warnings.warn(
|
||||
"put_start_and_end_on has been called on a closed loop or zero-length mobject. "
|
||||
f"{type(self).__name__} will be shifted to start point instead."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue