mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 16:19:13 +00:00
Added a .all() on PrevFrame to fix a ValueError
This commit is contained in:
1 parent
f25b0730e9
commit
d6bd377190
1 file changed
+1
-1
@@ -372,7 +372,7 @@ class PPM:
|
|||||||
byte >>= 1
|
byte >>= 1
|
||||||
|
|
||||||
#Merges this frame with the previous frame if NewFrame isn't true:
|
#Merges this frame with the previous frame if NewFrame isn't true:
|
||||||
if not NewFrame and PrevFrame <> None:#maybe optimize this better for numpy...
|
if not NewFrame and PrevFrame.all() <> None:#maybe optimize this better for numpy...
|
||||||
if FrameMove[0] or FrameMove[1]:#Moves the previous frame if specified:
|
if FrameMove[0] or FrameMove[1]:#Moves the previous frame if specified:
|
||||||
NewPrevFrame = np.zeros((2, 256, 192), dtype=np.bool_)
|
NewPrevFrame = np.zeros((2, 256, 192), dtype=np.bool_)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user
