Fix: don't allow node identifiers to be zero

Was missing in rB88c6d824e78ebe40b891.
This commit is contained in:
Jacques Lucke 2022-12-02 15:41:58 +01:00
parent e028662f78
commit 2bce3c0ac4
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ void ntreeBlendReadData(BlendDataReader *reader, ID *owner_id, bNodeTree *ntree)
/* Create the `nodes_by_id` cache eagerly so it can be expected to be valid. Because
* we create it here we also have to check for zero identifiers from previous versions. */
if (ntree->runtime->nodes_by_id.contains_as(node->identifier)) {
if (node->identifier == 0 || ntree->runtime->nodes_by_id.contains_as(node->identifier)) {
nodeUniqueID(ntree, node);
}
else {