Page MenuHome

Addons: Check if active object's data is None before calling .keys() on it
ClosedPublic

Authored by Robert Guetzkow (rjg) on Nov 4 2020, 7:28 PM.

Details

Summary

This patch is a fix for T82405. The issue was caused by using context.active_object.data.keys() which doesn't check if data is None. This is the case if the active object is an empty.

Diff Detail

Event Timeline

Robert Guetzkow (rjg) requested review of this revision.Nov 4 2020, 7:28 PM
Robert Guetzkow (rjg) created this revision.

I missed some files with the same issue and will update the diff shortly.

  • Add required check to more affected Python scripts
  • Missing additional checks
Robert Guetzkow (rjg) edited the summary of this revision. (Show Details)Nov 4 2020, 8:06 PM
This revision is now accepted and ready to land.Nov 6 2020, 11:31 AM