realize-depth #5

Merged
Arye Ramaty merged 43 commits from David-Haver/blender:realize-depth into WIP-realize-depth 2024-03-31 17:22:49 +02:00
Showing only changes of commit a6d4845899 - Show all commits

View File

@ -972,9 +972,14 @@ static std::shared_ptr<DictionaryValue> serialize_geometry_set(const GeometrySet
auto io_references = io_instances->append_array("references"); auto io_references = io_instances->append_array("references");
for (const InstanceReference &reference : instances.references()) { for (const InstanceReference &reference : instances.references()) {
BLI_assert(reference.type() == InstanceReference::Type::GeometrySet); if (reference.type() == InstanceReference::Type::GeometrySet) {
io_references->append( const GeometrySet &geometry = reference.geometry_set();
serialize_geometry_set(reference.geometry_set(), blob_writer, blob_sharing)); io_references->append(serialize_geometry_set(geometry, blob_writer, blob_sharing));
}
else {
/* TODO: Support serializing object and collection references. */
io_references->append(serialize_geometry_set({}, blob_writer, blob_sharing));
}
} }
auto io_attributes = serialize_attributes( auto io_attributes = serialize_attributes(