Page MenuHome

Fix crash in the node editor in cases where nodetree was empty
ClosedPublic

Authored by Dalai Felinto (dfelinto) on Oct 8 2021, 4:03 PM.

Details

Summary

This seems to happen only in a few files, and not so trivial to reproduce from scratch.

The crash is real though, and this fixes it.

Bug introduced on ebe23745281e86.

Diff Detail

Repository
rB Blender
Branch
fix-crash (branched from master)
Build Status
Buildable 17662
Build 17662: arc lint + arc unit

Event Timeline

Dalai Felinto (dfelinto) requested review of this revision.Oct 8 2021, 4:03 PM
Dalai Felinto (dfelinto) created this revision.
Sergey Sharybin (sergey) added inline comments.
source/blender/editors/space_node/node_draw.cc
2181
This revision is now accepted and ready to land.Oct 8 2021, 4:10 PM
Dalai Felinto (dfelinto) retitled this revision from Fix crash in the node editor to Fix crash in the node editor in cases where nodetree was empty.Oct 8 2021, 4:14 PM
Dalai Felinto (dfelinto) edited the summary of this revision. (Show Details)
Dalai Felinto (dfelinto) edited the summary of this revision. (Show Details)

From review: fix comment style