Merge branch 'blender-v3.2-release'
This commit is contained in:
commit
da1dd98101
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue