We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0b467 commit 9d437b5Copy full SHA for 9d437b5
1 file changed
src/ifcparse/IfcParse.cpp
@@ -1607,6 +1607,11 @@ void IfcParse::impl::in_memory_file_storage::read_from_stream(IfcParse::FileRead
1607
// Move the storage of simple type instances so that they are retained during the lifetime of the file
1608
read_simple_type_instances = streamer.stealInstances();
1609
1610
+ // Set file ownership on simple type instances, so that when adding them to other files, proper copies are created
1611
+ for (auto& inst : read_simple_type_instances) {
1612
+ inst->file_ = file;
1613
+ }
1614
+
1615
Logger::Status("\rDone scanning file ");
1616
1617
delete tokens;
0 commit comments