Page MenuHome

Python: Raise an error even NO_MAIN data is assigned to object

Authored by Sergey Sharybin (sergey) on May 17 2019, 2:03 PM.



The goal is to prevent assignment of temporary or evaluated meshes
to objects from the main database.

Majority of the change is actually related on passing reports around.

On a positive side there are more error prints which can become more
visible to scripters.

There are still possible further improvements in the related areas.
For example, disable user counting for evaluated ID datablocks when
assignment happens. But can also happen later on as a separate

Diff Detail

rB Blender
python_nomain_check (branched from master)
Build Status
Buildable 3627
Build 3627: arc lint + arc unit

Event Timeline

Brecht Van Lommel (brecht) added inline comments.

This comment can just be removed, don't think we need to report anything for overrides.

This revision is now accepted and ready to land.May 17 2019, 2:11 PM

Removed comment.

Missed that after initial discussion here with Brecht.

This revision was automatically updated to reflect the committed changes.