Page MenuHome

Fix Sapling addon object fake user bug
ClosedPublic

Authored by CansecoGPC (CansecoGPC) on Jun 30 2019, 5:59 PM.

Details

Summary

The add-on tries to deselect all objects before doing anything, but fails when it founds a previously deleted object with fake user.

Diff Detail

Event Timeline

Note the correct way to deselect all objects would be looping over all objects in the view layer with for ob in bpy.context.view_layer.objects.

Right, also when iterating over the objects in a the view layer, you should not have a problem with objects that are already deleted.

Changed from deselecting objects on file to view layer.

This revision is now accepted and ready to land.Jul 15 2019, 4:45 PM