Merge branch 'blender-v3.2-release'

This commit is contained in:
Julian Eisel 2022-05-27 19:13:59 +02:00
commit da1dd98101
3 changed files with 9 additions and 0 deletions

View File

@ -116,6 +116,11 @@ TreeElement *TreeDisplayLibraries::add_library_contents(Main &mainvar, ListBase
ID *id = static_cast<ID *>(lbarray[a]->first);
const bool is_library = (GS(id->name) == ID_LI) && (lib != nullptr);
/* Don't show deprecated types. */
if (ID_TYPE_IS_DEPRECATED(GS(id->name))) {
continue;
}
/* check if there's data in current lib */
for (ID *id_iter : List<ID>(lbarray[a])) {
if (id_iter->lib == lib) {

View File

@ -597,6 +597,8 @@ typedef struct PreviewImage {
* Keep in sync with #BKE_id_eval_properties_copy. */
#define ID_TYPE_SUPPORTS_PARAMS_WITHOUT_COW(id_type) ELEM(id_type, ID_ME)
#define ID_TYPE_IS_DEPRECATED(id_type) ELEM(id_type, ID_IP)
#ifdef GS
# undef GS
#endif

View File

@ -38,6 +38,8 @@ enum eIconSizes {
*
* Written to #BHead.code (for file IO)
* and the first 2 bytes of #ID.name (for runtime checks, see #GS macro).
*
* Update #ID_TYPE_IS_DEPRECATED() when deprecating types.
*/
typedef enum ID_Type {
ID_SCE = MAKE_ID2('S', 'C'), /* Scene */