Skip to content

Commit 01332c5

Browse files
committed
Fix hang when opening pdlua patch and drawing instantly
1 parent 702163c commit 01332c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pd.lua

+3
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,10 @@ function pd.Class:repaint(layer)
481481
self[paint_layer_method](self, g)
482482
_gfx_internal.end_paint(g, i)
483483
i = i + 1
484+
else
485+
break;
484486
end
487+
485488
else
486489
break -- Exit the loop when no more paint_layer_X methods are found
487490
end

0 commit comments

Comments
 (0)