summaryrefslogtreecommitdiff
path: root/apps/web/src/timeline
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/timeline')
-rw-r--r--apps/web/src/timeline/controllers/drag-drop-controller.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/web/src/timeline/controllers/drag-drop-controller.ts b/apps/web/src/timeline/controllers/drag-drop-controller.ts
index a419101f..6c48428a 100644
--- a/apps/web/src/timeline/controllers/drag-drop-controller.ts
+++ b/apps/web/src/timeline/controllers/drag-drop-controller.ts
@@ -15,6 +15,7 @@ import {
buildEffectElement,
} from "@/timeline/element-utils";
import { AddTrackCommand, InsertElementCommand } from "@/commands/timeline";
+import { effectsRegistry } from "@/effects";
import { BatchCommand } from "@/commands";
import type { Command } from "@/commands/base-command";
import { computeDropTarget } from "@/timeline/components/drop-target";
@@ -470,6 +471,10 @@ export class DragDropController {
return;
}
+ if (effectsRegistry.get(dragData.effectType).supportsStandalone === false) {
+ return;
+ }
+
const element = buildEffectElement({
effectType: dragData.effectType,
startTime: target.xPosition,