Skip to content

Commit

Permalink
Merge branch 'workshop' into RB-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Feb 1, 2016
2 parents 92de2b8 + cf4969c commit 5c85045
Show file tree
Hide file tree
Showing 229 changed files with 1,063 additions and 147 deletions.
8 changes: 6 additions & 2 deletions Engine/AppInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <fstream>
#include <list>
#include <cassert>
#include <stdexcept>

#include <QtCore/QDir>
Expand Down Expand Up @@ -398,7 +399,10 @@ AppInstance::getWritersWorkForCL(const CLArgs& cl,std::list<AppInstance::RenderW
}
} else {
writerNode = createWriter(it->filename.toStdString(), eCreateNodeReasonInternal, getProject());

if (!writerNode) {
throw std::runtime_error(std::string("Failed to create writer for ") + it->filename.toStdString());
}

//Connect the writer to the corresponding Output node input
NodePtr output = getProject()->getNodeByFullySpecifiedName(it->name.toStdString());
if (!output) {
Expand All @@ -412,7 +416,7 @@ AppInstance::getWritersWorkForCL(const CLArgs& cl,std::list<AppInstance::RenderW
if (outputInput) {
writerNode->connectInput(outputInput, 0);
}
#pragma message WARN("what is the following line for?")
writerNode->getScriptName().c_str();
}

Expand Down
2 changes: 2 additions & 0 deletions Engine/AppInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ class AppInstance

virtual void renderAllViewers(bool /* canAbort*/) {}

virtual void abortAllViewers() {}

virtual void declareCurrentAppVariable_Python();

void execOnProjectCreatedCallback();
Expand Down
3 changes: 3 additions & 0 deletions Engine/AppInstanceWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "AppInstanceWrapper.h"

#include <cassert>
#include <stdexcept>

#include <QDebug>

#include "Engine/AppInstance.h"
Expand Down
13 changes: 10 additions & 3 deletions Engine/AppManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <clocale>
#include <csignal>
#include <cstddef>
#include <cassert>
#include <stdexcept>

#if defined(Q_OS_LINUX)
Expand Down Expand Up @@ -795,14 +796,20 @@ AppManager::clearPluginsLoadedCache()
void
AppManager::clearAllCaches()
{
clearDiskCache();
clearNodeCache();

std::map<int,AppInstanceRef> copy;
{
QMutexLocker k(&_imp->_appInstancesMutex);
copy = _imp->_appInstances;
}

for (std::map<int,AppInstanceRef>::iterator it = copy.begin(); it != copy.end(); ++it) {
it->second.app->abortAllViewers();
}

clearDiskCache();
clearNodeCache();


///for each app instance clear all its nodes cache
for (std::map<int,AppInstanceRef>::iterator it = copy.begin(); it != copy.end(); ++it) {
it->second.app->clearOpenFXPluginsCaches();
Expand Down
2 changes: 1 addition & 1 deletion Engine/AppManagerPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <sys/time.h> // for getrlimit on linux
#include <sys/resource.h> // for getrlimit
#endif

#include <cstddef>
#include <cstdlib>
#include <cassert>
#include <stdexcept>

GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_OFF
Expand Down
4 changes: 4 additions & 0 deletions Engine/Backdrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
// ***** END PYTHON BLOCK *****

#include "Backdrop.h"

#include <cassert>
#include <stdexcept>

#include "Engine/Transform.h"
#include "Engine/KnobTypes.h"

Expand Down
3 changes: 2 additions & 1 deletion Engine/Bezier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
#include <sstream>
#include <locale>
#include <limits>
#include <stdexcept>
#include <cmath>
#include <cassert>
#include <stdexcept>

#include <QLineF>
#include <QtDebug>
Expand Down
1 change: 1 addition & 0 deletions Engine/BezierCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <set>
#include <list>
#include <utility>
#include <cassert>
#include <stdexcept>

#include <QtCore/QThread>
Expand Down
3 changes: 3 additions & 0 deletions Engine/BlockingBackgroundRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "BlockingBackgroundRender.h"

#include <cassert>
#include <stdexcept>

#include "Global/Macros.h"
CLANG_DIAG_OFF(deprecated-register) //'register' storage class specifier is deprecated
#include <QDebug>
Expand Down
1 change: 1 addition & 0 deletions Engine/CLArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <cstddef>
#include <iostream>
#include <cassert>
#include <stdexcept>

#include <QDebug>
Expand Down
3 changes: 3 additions & 0 deletions Engine/Cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "Cache.h"

#include <cassert>
#include <stdexcept>

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_EXIT;

Expand Down
1 change: 1 addition & 0 deletions Engine/CoonsRegularization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <limits>
#include <cfloat>
#include <algorithm> // min, max
#include <cassert>
#include <stdexcept>

#include "Engine/Bezier.h"
Expand Down
1 change: 1 addition & 0 deletions Engine/Curve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "Curve.h"

#include <algorithm>
#include <cassert>
#include <stdexcept>

#if !defined(SBK_RUN) && !defined(Q_MOC_RUN)
Expand Down
3 changes: 3 additions & 0 deletions Engine/CurveSerialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "CurveSerialization.h"

#include <cassert>
#include <stdexcept>

// explicit template instantiations

NATRON_NAMESPACE_ENTER;
Expand Down
1 change: 1 addition & 0 deletions Engine/DiskCacheNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "DiskCacheNode.h"

#include <cassert>
#include <stdexcept>

#include "Engine/Node.h"
Expand Down
3 changes: 3 additions & 0 deletions Engine/Dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "Dot.h"

#include <cassert>
#include <stdexcept>

NATRON_NAMESPACE_ENTER;

std::string
Expand Down
3 changes: 2 additions & 1 deletion Engine/EffectInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include <map>
#include <sstream>
#include <algorithm> // min, max
#include <stdexcept>
#include <fstream>
#include <bitset>
#include <cassert>
#include <stdexcept>

#include <QtConcurrentMap> // QtCore on Qt4, QtConcurrent on Qt5
#include <QtCore/QReadWriteLock>
Expand Down
3 changes: 3 additions & 0 deletions Engine/EffectInstancePrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "EffectInstancePrivate.h"

#include <cassert>
#include <stdexcept>

#include "Engine/AppInstance.h"
#include "Engine/Node.h"
#include "Engine/NodeGroup.h"
Expand Down
3 changes: 2 additions & 1 deletion Engine/EffectInstanceRenderRoI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
#include <map>
#include <sstream>
#include <algorithm> // min, max
#include <stdexcept>
#include <fstream>
#include <cassert>
#include <stdexcept>

#include <QtCore/QThreadPool>
#include <QtConcurrentMap> // QtCore on Qt4, QtConcurrent on Qt5
Expand Down
3 changes: 3 additions & 0 deletions Engine/ExistenceCheckThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

#include "ExistenceCheckThread.h"

#include <cassert>
#include <stdexcept>

#include <QLocalSocket>
#include <QMutex>
#include <QWaitCondition>
Expand Down
3 changes: 3 additions & 0 deletions Engine/FileDownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
// ***** END PYTHON BLOCK *****

#include "FileDownloader.h"

#include <cassert>
#include <stdexcept>

#include <QTimer>
#include <QAbstractNetworkCache>

Expand Down
2 changes: 2 additions & 0 deletions Engine/FileSystemModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "FileSystemModel.h"

#include <vector>
#include <cassert>
#include <stdexcept>

CLANG_DIAG_OFF(deprecated)
CLANG_DIAG_OFF(uninitialized)
Expand Down
2 changes: 2 additions & 0 deletions Engine/FitCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "FitCurve.h"

#include <cmath>
#include <cassert>
#include <stdexcept>

#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923132169163975144 /* pi/2 */
Expand Down
3 changes: 3 additions & 0 deletions Engine/FrameEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "FrameEntry.h"

#include <cassert>
#include <stdexcept>

#include "Engine/RectI.h"

NATRON_NAMESPACE_ENTER;
Expand Down
3 changes: 3 additions & 0 deletions Engine/FrameKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "FrameKey.h"

#include <cassert>
#include <stdexcept>

NATRON_NAMESPACE_ENTER;

FrameKey::FrameKey()
Expand Down
3 changes: 3 additions & 0 deletions Engine/FrameParamsSerialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "FrameParamsSerialization.h"

#include <cassert>
#include <stdexcept>

// explicit template instantiations

NATRON_NAMESPACE_ENTER;
Expand Down
3 changes: 3 additions & 0 deletions Engine/GroupInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "GroupInput.h"

#include <cassert>
#include <stdexcept>

#include "Engine/KnobTypes.h"
#include "Engine/Node.h"
#include "Engine/NodeGroup.h" // kNatronGroupInputIsOptionalParamName, kNatronGroupInputIsMaskParamName
Expand Down
3 changes: 3 additions & 0 deletions Engine/GroupOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include "GroupOutput.h"

#include <cassert>
#include <stdexcept>

NATRON_NAMESPACE_ENTER;

std::string
Expand Down
3 changes: 3 additions & 0 deletions Engine/Hash64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#include "Hash64.h"

#include <algorithm> // for std::for_each
#include <cassert>
#include <stdexcept>

#if !defined(Q_MOC_RUN) && !defined(SBK_RUN)
#include <boost/crc.hpp>
#endif
Expand Down
3 changes: 3 additions & 0 deletions Engine/HistogramCPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#include "HistogramCPU.h"

#include <algorithm>
#include <cassert>
#include <stdexcept>

#include <QMutex>
#include <QWaitCondition>

Expand Down
2 changes: 2 additions & 0 deletions Engine/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "Image.h"

#include <algorithm> // min, max
#include <cassert>
#include <stdexcept>

#include <QDebug>

Expand Down
3 changes: 3 additions & 0 deletions Engine/ImageComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#include "ImageComponents.h"
#include "ofxNatron.h"

#include <cassert>
#include <stdexcept>

NATRON_NAMESPACE_ENTER;

static const char* rgbaComps[4] = {"R","G","B","A"};
Expand Down
2 changes: 2 additions & 0 deletions Engine/ImageConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "Image.h"

#include <algorithm> // min, max
#include <cassert>
#include <stdexcept>

#include <QDebug>
#ifndef Q_MOC_RUN
Expand Down
Loading

0 comments on commit 5c85045

Please sign in to comment.