Page MenuHome

Add can_have_animation_data to IDTypeInfo.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Oct 7 2020, 11:41 AM.

Details

Summary

The goal here is to reduce the number of places where we have to check for specific ID types.

Ref T75724.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Oct 7 2020, 11:41 AM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) retitled this revision from Cleanup: move `can_have_animation_data` to `IDTypeInfo` to Add can_have_animation_data to IDTypeInfo..Oct 7 2020, 11:42 AM
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)
Bastien Montagne (mont29) requested changes to this revision.Oct 7 2020, 11:52 AM

Any reason not to use already existing flags here? Like adding new IDTYPE_FLAGS_NO_ANIMDATA, which also has the benefit of not needing any changes for the most common cases (i.e. ID that can have animdata)…

This revision now requires changes to proceed.Oct 7 2020, 11:52 AM

Any reason not to use already existing flags here? Like adding new IDTYPE_FLAGS_NO_ANIMDATA, which also has the benefit of not needing any changes for the most common cases (i.e. ID that can have animdata)…

Good point. Will change that.

This revision is now accepted and ready to land.Oct 7 2020, 12:27 PM