Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/lib/ip/OCIONodes/OCIOIPNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ namespace IPCore
}
}

updateConfig();
updateConfig(true);
}

OCIOIPNode::~OCIOIPNode()
Expand All @@ -174,7 +174,7 @@ namespace IPCore
delete m_state;
}

void OCIOIPNode::updateConfig()
void OCIOIPNode::updateConfig(const bool initializing)
{
try
{
Expand Down Expand Up @@ -230,7 +230,10 @@ namespace IPCore
m_state->shaderID = "";

updateContext();
updateFunction();
if (!initializing)
{
updateFunction();
}
}

void OCIOIPNode::updateContext()
Expand Down Expand Up @@ -352,7 +355,7 @@ namespace IPCore
boost::hash<string> string_hash;
string inName = stringProp("ocio.inColorSpace", m_state->linear);

if (inName.empty())
if (inName.empty() && !useRawConfig())
return;

try
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ip/OCIONodes/OCIONodes/OCIOIPNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace IPCore
virtual void readCompleted(const std::string&, unsigned int);
virtual void propertyChanged(const Property*);

void updateConfig();
void updateConfig(const bool initializing = false);

bool useRawConfig() const { return m_useRawConfig; }

Expand Down
Loading