DGNIMPORT: cells inside shared cell definitions are part of the definition; empty cells stay out

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-16 14:58:28 +03:00
1 parent fc04472472
commit dca6c9d116
2 files changed
+11 -11

No files matched your search

+1 -9
View File
@@ -715,15 +715,7 @@ fn place_converted(
if scene.document.block_records.get(target).is_some() {
continue;
}
let entities: Vec<codec::EntityType> = entities.into_iter().map(&fix).collect();
if entities.is_empty() {
// A cell that draws nothing still names a block.
let mut record = codec::tables::block_record::BlockRecord::new(target);
record.handle = scene.document.allocate_handle();
let _ = scene.document.block_records.add(record);
crate::io::xref::ensure_block_entities(&mut scene.document, target);
continue;
}
let entities = entities.into_iter().map(&fix).collect();
let _ = scene.define_block_from_owned_entities(entities, target, glam::DVec3::ZERO);
}
for entity in converted.entities {