Page MenuHome

Fix T82945: Crash when dragging modifiers in Outliner
AbandonedPublic

Authored by Fabrício Luis (ce3po) on Nov 24 2020, 2:28 AM.

Details

Summary

Problem

Variable psys is null.
Crash when press one Ctrl + z after steps for reproduce error the T82945.

Solution

Avoid null particle system.
Press many Ctrl + z is ok.

Diff Detail

Repository
rB Blender
Branch
fix_T82945 (branched from master)
Build Status
Buildable 11402
Build 11402: arc lint + arc unit

Event Timeline

Fabrício Luis (ce3po) requested review of this revision.Nov 24 2020, 2:28 AM
Fabrício Luis (ce3po) edited the summary of this revision. (Show Details)Nov 24 2020, 2:38 AM
Bastien Montagne (mont29) requested changes to this revision.Jan 6 2021, 5:24 PM

Don't think this is proper way to fix this, low-level particle code in BKE should typically not have to check for a NULL psys...

Further more, I am not sure whether a NULL psys at that point is expected. or if this is actually a bug. Needs more investigation in undo and particle areas of the code first imho.

This revision now requires changes to proceed.Jan 6 2021, 5:24 PM

I haven't looked into this bug specifically, but D9537 may have dealt with a similar case. Maybe it would be useful to look at the code that added for copying modifier particle systems.