Fix marker form start time not being set when abLoop disabled

This commit is contained in:
WithoutPants 2026-02-18 17:30:52 +11:00
parent e289199911
commit 0164d7ad31

View file

@ -72,7 +72,7 @@ export const SceneMarkerForm: React.FC<ISceneMarkerForm> = ({
const end = opts?.end;
const hasAbLoop = Number.isFinite(start);
if (hasAbLoop) {
if (opts?.enabled && hasAbLoop) {
const current = Math.round(getPlayerPosition() ?? 0);
const rawEnd =
Number.isFinite(end) && (end as number) > 0 ? (end as number) : null;