Blender
V5.0
source
blender
blenkernel
BKE_anonymous_attribute_id.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_string_ref.hh
"
12
13
#include "
BKE_attribute_filter.hh
"
14
15
namespace
blender::bke
{
16
24
inline
bool
attribute_name_is_anonymous
(
const
StringRef
name
)
25
{
26
return
name
.startswith(
".a_"
);
27
}
28
29
class
ProcessAllAttributeExceptAnonymous
:
public
AttributeFilter
{
30
public
:
31
Result
filter
(
const
StringRef
name
)
const override
32
{
33
if
(
attribute_name_is_anonymous
(
name
)) {
34
return
AttributeFilter::Result::AllowSkip
;
35
}
36
return
AttributeFilter::Result::Process
;
37
}
38
};
39
40
}
// namespace blender::bke
BKE_attribute_filter.hh
BLI_string_ref.hh
blender::StringRef
Definition
BLI_string_ref.hh:150
blender::bke::ProcessAllAttributeExceptAnonymous
Definition
BKE_anonymous_attribute_id.hh:29
blender::bke::ProcessAllAttributeExceptAnonymous::filter
Result filter(const StringRef name) const override
Definition
BKE_anonymous_attribute_id.hh:31
blender::bke
Definition
AS_asset_library.hh:27
blender::bke::attribute_name_is_anonymous
bool attribute_name_is_anonymous(const StringRef name)
Definition
BKE_anonymous_attribute_id.hh:24
name
const char * name
Definition
python_compat.hh:32
blender::bke::AttributeFilter
Definition
BKE_attribute_filter.hh:26
blender::bke::AttributeFilter::Result
Result
Definition
BKE_attribute_filter.hh:28
blender::bke::AttributeFilter::Result::Process
@ Process
Definition
BKE_attribute_filter.hh:32
blender::bke::AttributeFilter::Result::AllowSkip
@ AllowSkip
Definition
BKE_attribute_filter.hh:30
Generated on
for Blender by
doxygen
1.16.1