33 if (grease_pencil_ !=
nullptr) {
43 if (grease_pencil_ !=
nullptr) {
47 grease_pencil_ =
nullptr;
53 return grease_pencil_ !=
nullptr;
61 ownership_ = ownership;
68 grease_pencil_ =
nullptr;
74 return grease_pencil_;
84 return grease_pencil_;
89 return grease_pencil_ ==
nullptr;
101 if (grease_pencil_) {
Low-level operations for grease pencil.
AttributeAccessor(const void *owner, const AttributeAccessorFunctions &fn)
GeometryComponent(Type type)
bool has_grease_pencil() const
std::optional< AttributeAccessor > attributes() const final
std::optional< MutableAttributeAccessor > attributes_for_write() final
const GreasePencil * get() const
~GreasePencilComponent() override
bool owns_direct_data() const override
GreasePencil * get_for_write()
GeometryComponentPtr copy() const override
void ensure_owns_direct_data() override
bool is_empty() const final
void replace(GreasePencil *grease_pencil, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
MutableAttributeAccessor(void *owner, const AttributeAccessorFunctions &fn)
const AttributeAccessorFunctions & get_attribute_accessor_functions()
ImplicitSharingPtr< GeometryComponent > GeometryComponentPtr
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
GreasePencil * BKE_grease_pencil_copy_for_eval(const GreasePencil *grease_pencil_src)
void BKE_id_free(Main *bmain, void *idv)