Page MenuHome

Sculpt: Fix crash with no active brush data-block
Needs ReviewPublic

Authored by Aaron Carlisle (Blendify) on Oct 24 2022, 8:25 PM.

Details

Summary

Steps to reproduce:

From sculpt mode delete the brush users from the active tool and try to sculpt.

The fix is simple by just adding a null check to two functions.

Diff Detail

Repository
rB Blender
Branch
sculpt-fix-null-brush (branched from master)
Build Status
Buildable 24393
Build 24393: arc lint + arc unit

Event Timeline

Aaron Carlisle (Blendify) requested review of this revision.Oct 24 2022, 8:25 PM
Aaron Carlisle (Blendify) created this revision.
Aaron Carlisle (Blendify) retitled this revision from Sculpt: Fix crash when there is no active brush data-block to Sculpt: Fix crash with no active brush data-block.Oct 24 2022, 11:05 PM

@Joseph Eagar (joeedh) mentioned in the module meeting that he worked on a similar fix.
Joe can you comment on this further?

I can't seem to reproduce this. Looks like it's no longer possible to assign null to a toolslot brush.