diff --git a/src/plugins/score-plugin-js/JS/Qml/EditContext.curve.cpp b/src/plugins/score-plugin-js/JS/Qml/EditContext.curve.cpp index 99b3b5609c..886b2d6919 100644 --- a/src/plugins/score-plugin-js/JS/Qml/EditContext.curve.cpp +++ b/src/plugins/score-plugin-js/JS/Qml/EditContext.curve.cpp @@ -4,9 +4,10 @@ #include #include +#if SCORE_PLUGIN_MEDIA #include #include - +#endif namespace JS { @@ -69,6 +70,7 @@ void EditJsContext::setCurvePoints(QObject* process, QVector point void EditJsContext::setSteps(QObject* process, QVector points) { +#if SCORE_PLUGIN_MEDIA if(points.empty()) return; @@ -84,6 +86,7 @@ void EditJsContext::setSteps(QObject* process, QVector points) submit( *m, new Media::ChangeSteps{*proc, ossia::float_vector{points.begin(), points.end()}}); +#endif } }