Page MenuHome

T80395 In cycles, ignore disabled surfaces when baking.
ClosedPublic

Authored by Martijn Versteegh (Baardaap) on Sep 25 2020, 8:55 PM.

Details

Summary

When disabling surfaces in Cycles' Filter panel and then baking a texture Blender crashes.

The baking data references the surface triangles,so not syncing surfaces
leads to a crash. Surfaces are the only objects that support baking
so having surfaces disabled makes no sense and is probably not what the
user meant to do. So when baking, just ignore this filter setting and sync
surfaces anyway.

Diff Detail

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

Event Timeline

Martijn Versteegh (Baardaap) requested review of this revision.Sep 25 2020, 8:55 PM
Martijn Versteegh (Baardaap) created this revision.

This makes cycles ignore disabled surfaces in the view layer when baking.

Since Aaron Carlisle was the first to look at the original patch I added him here as well.

Is there someone else I should ask to look at this? Should I keep pinging people, or is everybody just very busy and will get to it eventually?

Dalai Felinto's remarks convinced me this is the right approach, and it's a really simple solution as well. It would be a shame if this small fix would fall through the cracks. It isn't really an important thing, but crashes are always annoying.

This revision is now accepted and ready to land.Oct 1 2020, 2:31 PM