Files
test/source/blender/blenkernel/BKE_attribute_storage_blend_write.hh
Hans Goudey f61fbc468a Attributes: Remove AttributeStorage legacy compatibility option
Remove the use_attribute_storage_write experimental option and always
write in the new format, which is supported by 4.5. The new format is
only used at runtime by point clouds currently but there is no reason
for it to be an option at this point.

This is a second commit repeating 84212bae4b
after that was reverted. Issues that came up with Grease Pencil writing
have been resolved in the meantime.
2025-06-19 11:54:07 -04:00

21 lines
707 B
C++

/* SPDX-FileCopyrightText: 2025 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "BKE_attribute_storage.hh"
namespace blender::bke {
/**
* Prepare an #AttributeStorage struct embedded in another struct to be written. This is necessary
* because the #AttributeStorage implementation doesn't use the DNA structs at runtime, they are
* created just for the writing process. Creating them mutates the struct, which must be done
* before writing the struct that embeds it.
*/
void attribute_storage_blend_write_prepare(AttributeStorage &data,
AttributeStorage::BlendWriteData &write_data);
} // namespace blender::bke