From 7ac70e7cf7ea6d81594e7feb01e47bfe08fc48ee Mon Sep 17 00:00:00 2001 From: Tats Date: Fri, 13 May 2016 00:19:09 +0000 Subject: [PATCH] Added support for OSC message: rewind individual paint. --- OscInterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OscInterface.cpp b/OscInterface.cpp index a772691..507f61b 100644 --- a/OscInterface.cpp +++ b/OscInterface.cpp @@ -195,7 +195,11 @@ void OscInterface::applyOscCommand(MainWindow &main_window, QVariantList & comma // Find paint. int id = command.at(2).toInt(); Paint::ptr elem = main_window.getMappingManager().getPaintById(id); - pathIsValid = setElementProperty(elem, next(iterator.second).first, command.at(3)); + iterator = next(iterator.second); + if (iterator.first == OSC_REWIND) + elem->rewind(); + else + pathIsValid = setElementProperty(elem, iterator.first, command.at(3)); } else if (iterator.first == OSC_MAPPING) {