Fix: crash in node poll function due to missing null check

This commit is contained in:
Jacques Lucke 2022-11-29 13:16:13 +01:00
parent e97443478e
commit eae2917fde
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@ bool nodeGroupPoll(const bNodeTree *nodetree,
return false;
}
if (nodetree->type != grouptree->type) {
*r_disabled_hint = TIP_("Node group has different type");
if (r_disabled_hint) {
*r_disabled_hint = TIP_("Node group has different type");
}
return false;
}