mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix assertion in ImageMobjectFromCamera.interpolate_color() (#4593)
This commit is contained in:
parent
761bc46cc8
commit
ae501baf19
1 changed files with 2 additions and 2 deletions
|
|
@ -353,8 +353,8 @@ class ImageMobjectFromCamera(AbstractImageMobject):
|
|||
def interpolate_color(
|
||||
self, mobject1: Mobject, mobject2: Mobject, alpha: float
|
||||
) -> None:
|
||||
assert isinstance(mobject1, ImageMobject)
|
||||
assert isinstance(mobject2, ImageMobject)
|
||||
assert isinstance(mobject1, ImageMobjectFromCamera)
|
||||
assert isinstance(mobject2, ImageMobjectFromCamera)
|
||||
assert mobject1.pixel_array.shape == mobject2.pixel_array.shape, (
|
||||
f"Mobject pixel array shapes incompatible for interpolation.\n"
|
||||
f"Mobject 1 ({mobject1}) : {mobject1.pixel_array.shape}\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue