Skip to content

Commit

Permalink
Implicitly casting a np.array to bool fails (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed Jun 1, 2020
1 parent 7203c4e commit da8680a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/tools/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def color_gradient(
vector = np.array(vector[::-1])
p2 = p1 + vector

if vector:
if vector is None:
norm = np.linalg.norm(vector)

M = np.dstack(np.meshgrid(range(w), range(h))[::-1]).astype(float)
Expand Down

0 comments on commit da8680a

Please sign in to comment.