Blender
V3.3
source
blender
editors
space_outliner
tree
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
14
#include "
tree_element_id_library.hh
"
15
16
namespace
blender::ed::outliner
{
17
18
TreeElementIDLibrary::TreeElementIDLibrary
(
TreeElement
&legacy_te,
Library
&
library
)
19
:
TreeElementID
(legacy_te,
library
.
id
)
20
{
21
legacy_te.
name
=
library
.filepath;
22
}
23
24
bool
TreeElementIDLibrary::isExpandValid
()
const
25
{
26
return
true
;
27
}
28
29
StringRefNull
TreeElementIDLibrary::getWarning
()
const
30
{
31
Library
&
library
=
reinterpret_cast<
Library
&
>
(
id_
);
32
33
if
(
library
.tag &
LIBRARY_TAG_RESYNC_REQUIRED
) {
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
BLT_translation.h
TIP_
#define TIP_(msgid)
Definition:
BLT_translation.h:38
DNA_ID.h
ID and Library types, which are fundamental for sdna.
LIB_TAG_MISSING
@ LIB_TAG_MISSING
Definition:
DNA_ID.h:690
LIBRARY_TAG_RESYNC_REQUIRED
@ LIBRARY_TAG_RESYNC_REQUIRED
Definition:
DNA_ID.h:492
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
blender::StringRefNull
Definition:
BLI_string_ref.hh:108
blender::ed::outliner::TreeElementIDLibrary::isExpandValid
bool isExpandValid() const override
Definition:
tree_element_id_library.cc:24
blender::ed::outliner::TreeElementIDLibrary::TreeElementIDLibrary
TreeElementIDLibrary(TreeElement &legacy_te, Library &library)
Definition:
tree_element_id_library.cc:18
blender::ed::outliner::TreeElementIDLibrary::getWarning
blender::StringRefNull getWarning() const override
Definition:
tree_element_id_library.cc:29
blender::ed::outliner::TreeElementID
Definition:
tree_element_id.hh:18
blender::ed::outliner::TreeElementID::id_
ID & id_
Definition:
tree_element_id.hh:20
id
ID * id
Definition:
deg_eval_runtime_backup_animation.cc:28
blender::ed::outliner
Definition:
outliner_intern.hh:40
Library
Definition:
DNA_ID.h:457
TreeElement
Definition:
outliner_intern.hh:79
TreeElement::name
const char * name
Definition:
outliner_intern.hh:97
tree_element_id_library.hh
library
static FT_Library library
Definition:
vfontdata_freetype.c:38
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1