Skip to content

Commit

Permalink
FunctionUtil: Fix chroma planes check
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 15, 2024
1 parent 5334d1f commit 4ad6445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstools/functions/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def work_clip(self) -> ConstantFormatVideoNode:
def chroma_planes(self) -> list[vs.VideoNode]:
"""Get a list of all chroma planes in the normalised clip."""

if self == [0] or self.norm_clip.format.num_planes == 1:
if self != [0] or self.norm_clip.format.num_planes == 1:
return []

return [plane(self.norm_clip, i) for i in (1, 2)]
Expand Down

0 comments on commit 4ad6445

Please sign in to comment.