Fix: Nodes: Only look for compute contexts in geo-node trees
`find_socket_log_contexts` tries to look for `ComputeContext`s regardless of the tree type. This doesn't currently cause any problem in main because no other node editor has zones, but it causes crashes in the NPR branch, and will crash in main when other tree types add zones support. (See https://projects.blender.org/pragma37/npr-tracker/issues/13) Pull Request: https://projects.blender.org/blender/blender/pulls/133447
This commit is contained in:
@@ -838,7 +838,7 @@ static void find_socket_log_contexts(const NodesModifierData &nmd,
|
||||
const SpaceLink *sl = static_cast<SpaceLink *>(area->spacedata.first);
|
||||
if (sl->spacetype == SPACE_NODE) {
|
||||
const SpaceNode &snode = *reinterpret_cast<const SpaceNode *>(sl);
|
||||
if (snode.edittree == nullptr) {
|
||||
if (snode.edittree == nullptr || snode.edittree->type != NTREE_GEOMETRY) {
|
||||
continue;
|
||||
}
|
||||
const Map<const bke::bNodeTreeZone *, ComputeContextHash> hash_by_zone =
|
||||
|
||||
Reference in New Issue
Block a user