forked from blender/blender
realize-depth #5
@ -968,9 +968,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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
io_instances->append(
|
io_instances->append(
|
||||||
|
Loading…
Reference in New Issue
Block a user