nodes: remove graph and merge into project
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "ociobase.h"
|
||||
|
||||
#include "node/color/colormanager/colormanager.h"
|
||||
#include "node/project/project.h"
|
||||
#include "node/project.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
@@ -41,13 +41,11 @@ OCIOBaseNode::OCIOBaseNode() :
|
||||
SetFlags(kVideoEffect);
|
||||
}
|
||||
|
||||
void OCIOBaseNode::AddedToGraph(NodeGraph *graph)
|
||||
void OCIOBaseNode::AddedToGraph(Project *p)
|
||||
{
|
||||
if (Project *p = dynamic_cast<Project*>(graph)) {
|
||||
manager_ = p->color_manager();
|
||||
connect(manager_, &ColorManager::ConfigChanged, this, &OCIOBaseNode::ConfigChanged);
|
||||
ConfigChanged();
|
||||
}
|
||||
manager_ = p->color_manager();
|
||||
connect(manager_, &ColorManager::ConfigChanged, this, &OCIOBaseNode::ConfigChanged);
|
||||
ConfigChanged();
|
||||
}
|
||||
|
||||
void OCIOBaseNode::RemovedFromGraph()
|
||||
|
||||
@@ -51,7 +51,7 @@ private:
|
||||
ColorProcessorPtr processor_;
|
||||
|
||||
private slots:
|
||||
void AddedToGraph(NodeGraph *graph);
|
||||
void AddedToGraph(Project *p);
|
||||
|
||||
void RemovedFromGraph();
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "common/ocioutils.h"
|
||||
#include "node/project/project.h"
|
||||
#include "node/project.h"
|
||||
#include "render/colorprocessor.h"
|
||||
#include "widget/slider/floatslider.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user