From a066fb45cd9dedbe24d183ec636ba99af8ae3847 Mon Sep 17 00:00:00 2001 From: Alexandre Gauthier Date: Mon, 22 Dec 2014 09:08:45 +0100 Subject: [PATCH] ComputeHash: bug fix --- Engine/Node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/Node.cpp b/Engine/Node.cpp index 20fb20fd1d..34ad139a2f 100644 --- a/Engine/Node.cpp +++ b/Engine/Node.cpp @@ -521,8 +521,8 @@ Node::computeHash() isViewer->getActiveInputs(activeInput[0], activeInput[1]); for (int i = 0; i < 2; ++i) { - if ( (activeInput[i] >= 0) && _imp->inputs[i] ) { - _imp->hash.append( _imp->inputs[i]->getHashValue() ); + if ( (activeInput[i] >= 0) && _imp->inputs[activeInput[i]] ) { + _imp->hash.append( _imp->inputs[activeInput[i]]->getHashValue() ); } } } else {