Blender V4.3
tree_element_id_library.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "BLT_translation.hh"
10
11#include "DNA_ID.h"
12#include "DNA_listBase.h"
13
14#include "../outliner_intern.hh"
15
17
18namespace blender::ed::outliner {
19
21 : TreeElementID(legacy_te, library.id)
22{
23 legacy_te.name = library.filepath;
24}
25
27{
28 Library &library = reinterpret_cast<Library &>(id_);
29
31 return RPT_(
32 "Contains linked library overrides that need to be resynced, updating the library is "
33 "recommended");
34 }
35
36 if (library.id.tag & ID_TAG_MISSING) {
37 return RPT_("Missing library");
38 }
39
40 return {};
41}
42
43} // namespace blender::ed::outliner
#define RPT_(msgid)
ID and Library types, which are fundamental for SDNA.
@ ID_TAG_MISSING
Definition DNA_ID.h:813
@ LIBRARY_TAG_RESYNC_REQUIRED
Definition DNA_ID.h:541
These structs are the foundation for all linked lists in the library system.
TreeElementIDLibrary(TreeElement &legacy_te, Library &library)
blender::StringRefNull get_warning() const override
int tag
Definition DNA_ID.h:434
char filepath[1024]
Definition DNA_ID.h:531
struct Library_Runtime runtime
Definition DNA_ID.h:535
ID id
Definition DNA_ID.h:529