From a2ac90c41ca5127da69a934a83f58230e66848dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 17 Jan 2024 08:30:31 -0500 Subject: [PATCH] [js] make dependency on media plug-in optional --- src/plugins/score-plugin-js/JS/Qml/EditContext.curve.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } }