Compositor: Fix crash when hashing unconnected operations

It was causing some tests to fail when enabling Full Frame mode.
This commit is contained in:
Manuel Castilla 2021-09-11 15:11:59 +02:00
parent 4e78b89e48
commit cbe05edde5
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ std::optional<NodeOperationHash> NodeOperation::generate_hash()
hash.parents_hash_ = 0;
for (NodeOperationInput &socket : m_inputs) {
if (!socket.isConnected()) {
continue;
}
NodeOperation &input = socket.getLink()->getOperation();
const bool is_constant = input.get_flags().is_constant_operation;
combine_hashes(hash.parents_hash_, get_default_hash(is_constant));