Title: Bonsai: editing a layer set crashes on a slab whose object is an Empty ('NoneType' object has no attribute 'BIMMeshProperties') · Issue #10136 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: editing a layer set crashes on a slab whose object is an Empty ('NoneType' object has no attribute 'BIMMeshProperties') · Issue #10136 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: editing a layer set crashes on a slab whose object is an Empty ('NoneType' object has no attribute 'BIMMeshProperties') · Issue #10136 · IfcOpenShell/IfcOpenShell
Description: Editing a layer set (bim.edit_assigned_material) regenerates the thickness of every LAYER3 slab using it. If one of those slabs is an Empty in Blender (no body mesh yet), the operator crashes: slab.py change_thickness -> core/geometry.py...
Open Graph Description: Editing a layer set (bim.edit_assigned_material) regenerates the thickness of every LAYER3 slab using it. If one of those slabs is an Empty in Blender (no body mesh yet), the operator crashes: slab...
X Description: Editing a layer set (bim.edit_assigned_material) regenerates the thickness of every LAYER3 slab using it. If one of those slabs is an Empty in Blender (no body mesh yet), the operator crashes: slab...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10136
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: editing a layer set crashes on a slab whose object is an Empty ('NoneType' object has no attribute 'BIMMeshProperties')","articleBody":"Editing a layer set (`bim.edit_assigned_material`) regenerates the thickness of every LAYER3 slab using it. If one of those slabs is an Empty in Blender (no body mesh yet), the operator crashes:\n\n```\nslab.py change_thickness -> core/geometry.py switch_representation\n-> tool/geometry.py reimport_element_representations\n-> import_ifc.py MaterialCreator.create -> tool.Geometry.record_object_materials(obj)\n-> get_mesh_props(obj.data): AttributeError: 'NoneType' object has no attribute 'BIMMeshProperties'\n```\n\n`reimport_element_representations` calls `MaterialCreator.create` before `change_data()` puts the new mesh on the object, so `record_object_materials(obj)` writes to the object's *old* data, which is `None` for an Empty. When there is an old mesh, the checksum lands on a mesh that is about to be replaced. Either way it is redundant: `change_data()` records it after the swap. Past this point the same path then hits #8655.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-11-05T20:55:53Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10136"}
| 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:424ac3b4-6b3b-e218-b734-04a7bca11029 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B78:182F90:B4954:1010D4:6B04637F |
| html-safe-nonce | dce442a75a556d8e91ed5381c0b398a1bfcf221d57a4bdbe092327a937866988 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc4OjE4MkY5MDpCNDk1NDoxMDEwRDQ6NkIwNDYzN0YiLCJ2aXNpdG9yX2lkIjoiODM1Nzc3MzI4NDgyMTE5NzY5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 43118460b40235190337292b12b5ed71651ab1f6771785da0d7024abb84e63d7 |
| hovercard-subject-tag | issue:6231500778 |
| 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/10136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/403927256d992f73169d5ac4d54b80a31fdbf6f8d5ac05db5ea55327f1030362/IfcOpenShell/IfcOpenShell/issues/10136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/403927256d992f73169d5ac4d54b80a31fdbf6f8d5ac05db5ea55327f1030362/IfcOpenShell/IfcOpenShell/issues/10136 |
| og:image:alt | Editing a layer set (bim.edit_assigned_material) regenerates the thickness of every LAYER3 slab using it. If one of those slabs is an Empty in Blender (no body mesh yet), the operator crashes: slab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theoryshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| 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 | 03e114520787ad27289207f153520ef97461127c |
| 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