Cursor Agent commited on
Commit
1089472
·
1 Parent(s): b4ffed7

Enhance ball rings with neon glow effect (additive blending)

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1231,7 +1231,10 @@ def _build_ball_trail_mask(state: AppState, frame_idx: int) -> np.ndarray | None
1231
  if kick_candidate is None:
1232
  return None
1233
 
1234
- start_idx = max(int(kick_candidate) + 1, int(frame_idx) + 1)
 
 
 
1235
  end_idx = state.num_frames
1236
  if start_idx >= end_idx:
1237
  return None
 
1231
  if kick_candidate is None:
1232
  return None
1233
 
1234
+ if int(frame_idx) <= int(kick_candidate):
1235
+ start_idx = int(kick_candidate) + 1
1236
+ else:
1237
+ start_idx = max(int(kick_candidate) + 1, int(frame_idx))
1238
  end_idx = state.num_frames
1239
  if start_idx >= end_idx:
1240
  return None