Title: Bonsai: Linked collections replaced by empty object when using "save session data to x.metadata.blend" · Issue #7978 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Linked collections replaced by empty object when using "save session data to x.metadata.blend" · Issue #7978 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Linked collections replaced by empty object when using "save session data to x.metadata.blend" · Issue #7978 · IfcOpenShell/IfcOpenShell
Description: Bug Description When using the Bonsai plugin in Blender with the option "save session data to x.metadata.blend" enabled, linked collections are not preserved correctly after reloading the project. Instead, they are replaced by an empty o...
Open Graph Description: Bug Description When using the Bonsai plugin in Blender with the option "save session data to x.metadata.blend" enabled, linked collections are not preserved correctly after reloading the project. ...
X Description: Bug Description When using the Bonsai plugin in Blender with the option "save session data to x.metadata.blend" enabled, linked collections are not preserved correctly after reloading the...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7978
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Linked collections replaced by empty object when using \"save session data to x.metadata.blend\"","articleBody":"### Bug Description\n\nWhen using the Bonsai plugin in Blender with the option \"save session data to x.metadata.blend\" enabled, linked collections are not preserved correctly after reloading the project. Instead, they are replaced by an empty object.\n\n**Steps to Reproduce** :\n1. Enable \"save session data to x.metadata.blend\"\n2. Go to File > Link... > Blue_Cube.blend > Collection > Blue Cube\n3. Save the project\n4. Reload the project\n\n**Expected Behavior**\nThe linked collection (Blue Cube) should remain intact and properly linked after reloading.\n\n**Actual Behavior**\nThe linked collection is replaced by an empty object.\n\nLinking directly an object does not trigger the issue.\n\n**Environment**\nBlender version: 5.1.1\nIfc version: 4\nBonsai plugin version: 0.8.5-alpha260409\nOS: Windows 11 (up to date)\n\nThank you for this amazing project 🙏\n\n### Attachments\n\n[test.zip](https://github.com/user-attachments/files/26928423/test.zip)\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.26200\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 170 Stepping 4, GenuineIntel\nblender_version: 5.1.1\nbonsai_version: 0.8.5-alpha260409\nbonsai_commit_hash: b4558f7\nbonsai_commit_date: 2026-04-09T01:04:14+01:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# ifcopenshell.api: geometry.connect_wall\n>>> {\"wall1\": {\"cast_type\": \"entity_instance\", \"value\": 1216, \"Name\": \"Wall\"}, \"wall2\": {\"cast_type\": \"entity_instance\", \"value\": 1293, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.connect_path\n>>> {\"relating_element\": {\"cast_type\": \"entity_instance\", \"value\": 1216, \"Name\": \"Wall\"}, \"related_element\": {\"cast_type\": \"entity_instance\", \"value\": 1293, \"Name\": \"Wall\"}, \"relating_connection\": \"ATSTART\", \"related_connection\": \"ATEND\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.regenerate_wall_representation\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 1216, \"Name\": \"Wall\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 2.264936677919253e-07], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\", \"should_transform_children\": \"True\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 1216, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.regenerate_wall_representation\n>>> {}\n# operator: BIM_OT_save_project\n# operator: BIM_OT_save_project\n# ifcopenshell.api: document.add_information\n>>> {\"parent\": \"None\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: document.edit_information\n>>> {\"information\": {\"cast_type\": \"entity_instance\", \"value\": 1493, \"Name\": \"Unnamed\"}, \"attributes\": \"{'Identification': 'BLEND_METADATA', 'Name': 'Blend Metadata', 'Scope': 'BLEND_METADATA', 'Description': 'References to blend metadata file for this IFC project', 'Location': 'test.ifc.metadata.blend'}\"}\n# operator: BIM_OT_override_move_select\n# operator: BIM_OT_override_move_select\n# operator: BIM_OT_save_project\n# ifcopenshell.api: document.edit_information\n>>> {\"information\": {\"cast_type\": \"entity_instance\", \"value\": 1493, \"Name\": \"Blend Metadata\"}, \"attributes\": \"{'Location': 'test.ifc.metadata.blend'}\"}\n# operator: BIM_OT_override_move_select\n# operator: BIM_OT_override_move_select\n# operator: BIM_OT_save_project\n# ifcopenshell.api: document.edit_information\n>>> {\"information\": {\"cast_type\": \"entity_instance\", \"value\": 1493, \"Name\": \"Blend Metadata\"}, \"attributes\": \"{'Location': 'test.ifc.metadata.blend'}\"}\nlast_error: None\nblend_file_path: C:\\test\\test.ifc.metadata.blend\nblend_file_dirty: True\nifc_file_path: C:/test/test.ifc\nifc_is_dirty: False\nifc: test.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.5-alpha260409\noriginating_system: Bonsai 0.8.5-alpha260409-b4558f7\n```","author":{"url":"https://github.com/Taknok","@type":"Person","name":"Taknok"},"datePublished":"2026-04-21T10:01:40Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7978"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:497562ea-2e3c-4f6b-3db4-d4a5fa1cbf00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED00:2C38E4:721F07:98B307:6B04AA02 |
| html-safe-nonce | ec0213fc4b4b1f974cd8e6a4f42875524624910e93d9002f813f2be55be004c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDAwOjJDMzhFNDo3MjFGMDc6OThCMzA3OjZCMDRBQTAyIiwidmlzaXRvcl9pZCI6Ijc4MTEyMzY2ODYzNjA1MjEyMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ffae9a3cc4de2ec4cebbb483b091cb2da4e930c59fe9c1853e4cb9ce1028b370 |
| hovercard-subject-tag | issue:4301813746 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/7978/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be775dd824d04266af00237611b47e6dfcf85d8dbe7e8a939af4ba955e7ea7ee/IfcOpenShell/IfcOpenShell/issues/7978 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be775dd824d04266af00237611b47e6dfcf85d8dbe7e8a939af4ba955e7ea7ee/IfcOpenShell/IfcOpenShell/issues/7978 |
| og:image:alt | Bug Description When using the Bonsai plugin in Blender with the option "save session data to x.metadata.blend" enabled, linked collections are not preserved correctly after reloading the project. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Taknok |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width