render: avoid hashing null node

This commit is contained in:
itsmattkc
2021-09-21 21:32:20 -07:00
parent 31cb4dd0b1
commit 8277748719
6 changed files with 30 additions and 11 deletions
+10
View File
@@ -370,11 +370,21 @@ Node *ViewerOutput::GetConnectedTextureOutput()
return GetConnectedOutput(kTextureInput);
}
Node::ValueHint ViewerOutput::GetConnectedTextureValueHint()
{
return GetValueHintForInput(kTextureInput);
}
Node *ViewerOutput::GetConnectedSampleOutput()
{
return GetConnectedOutput(kSamplesInput);
}
Node::ValueHint ViewerOutput::GetConnectedSampleValueHint()
{
return GetValueHintForInput(kSamplesInput);
}
void ViewerOutput::InputValueChangedEvent(const QString &input, int element)
{
if (input == kAutoCacheInput) {