Blender  V3.3
tree_element_id_library.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BLT_translation.h"
8 
9 #include "DNA_ID.h"
10 #include "DNA_listBase.h"
11 
12 #include "../outliner_intern.hh"
13 
15 
16 namespace blender::ed::outliner {
17 
19  : TreeElementID(legacy_te, library.id)
20 {
21  legacy_te.name = library.filepath;
22 }
23 
25 {
26  return true;
27 }
28 
30 {
31  Library &library = reinterpret_cast<Library &>(id_);
32 
34  return TIP_(
35  "Contains linked library overrides that need to be resynced, updating the library is "
36  "recommended");
37  }
38 
39  if (library.id.tag & LIB_TAG_MISSING) {
40  return TIP_("Missing library");
41  }
42 
43  return {};
44 }
45 
46 } // namespace blender::ed::outliner
#define TIP_(msgid)
ID and Library types, which are fundamental for sdna.
@ LIB_TAG_MISSING
Definition: DNA_ID.h:690
@ LIBRARY_TAG_RESYNC_REQUIRED
Definition: DNA_ID.h:492
These structs are the foundation for all linked lists in the library system.
TreeElementIDLibrary(TreeElement &legacy_te, Library &library)
blender::StringRefNull getWarning() const override
const char * name
static FT_Library library