The proper id / identity fix for rocksdb

This commit is contained in:
Thomas Krijnen
2026-04-22 18:11:01 +02:00
parent 14e9846e35
commit c42a7f32d0
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -494,7 +494,7 @@ class IFC_PARSE_API instance_data {
}
#ifdef IFOPSH_WITH_ROCKSDB
else {
rocks_db_attribute_storage{}.set(get_storage_of_type<ifcopenshell::impl::rocks_db_file_storage>(), declaration_, declaration_->as_entity() ? id_ : identity_, attribute_index, value);
rocks_db_attribute_storage{}.set(get_storage_of_type<ifcopenshell::impl::rocks_db_file_storage>(), declaration_, id_ ? id_ : identity_, attribute_index, value);
}
#endif
}
@@ -506,7 +506,7 @@ class IFC_PARSE_API instance_data {
}
#ifdef IFOPSH_WITH_ROCKSDB
else {
return rocks_db_attribute_storage{}.has<T>(get_storage_of_type<ifcopenshell::impl::rocks_db_file_storage>(), declaration_, declaration_->as_entity() ? id_ : identity_, attribute_index);
return rocks_db_attribute_storage{}.has<T>(get_storage_of_type<ifcopenshell::impl::rocks_db_file_storage>(), declaration_, id_ ? id_ : identity_, attribute_index);
}
#endif
}