René's URL Explorer Experiment


Title: Bonsai: New Project with a template that has a site — merged surface styles get no Blender material, style editor fails · Issue #10134 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: New Project with a template that has a site — merged surface styles get no Blender material, style editor fails · Issue #10134 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: New Project with a template that has a site — merged surface styles get no Blender material, style editor fails · Issue #10134 · IfcOpenShell/IfcOpenShell

Description: Bug Description Observation Creating a new project from a project template that contains an IfcSite (and its storeys) and surface styles: the styles are in the IFC afterwards, but none of them has a Blender material. Opening any of them ...

Open Graph Description: Bug Description Observation Creating a new project from a project template that contains an IfcSite (and its storeys) and surface styles: the styles are in the IFC afterwards, but none of them has ...

X Description: Bug Description Observation Creating a new project from a project template that contains an IfcSite (and its storeys) and surface styles: the styles are in the IFC afterwards, but none of them has ...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10134

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: New Project with a template that has a site — merged surface styles get no Blender material, style editor fails","articleBody":"### Bug Description\n\n**Observation**\n\nCreating a new project from a project template that contains an `IfcSite` (and its storeys) **and** surface styles: the styles are in the IFC afterwards, but none of them has a Blender material. Opening any of them in the style editor (Surface → Shading/Render tab) fails:\n\n```\nFile \".../bonsai/bim/module/style/operator.py\", line 999, in execute\n    msprops = tool.Style.get_material_style_props(material)\nFile \".../bonsai/tool/style.py\", line 70, in get_material_style_props\n    return material.BIMStyleProperties\nAttributeError: 'NoneType' object has no attribute 'BIMStyleProperties'\n```\n\nMeasured with a template of 39 surface styles: after *New Project* 39 of 39 styles have no Blender material. After saving the project and opening it again with `bim.load_project`, all 39 have one and the style editor works. With `IFC4 Demo Template.ifc` (no site) there is no error. The same traceback was reported on Blender 5.4 alpha in the OSArch forum: https://community.osarch.org/discussion/3782/\n\n**Where it comes from**\n\n`core.create_project` has two paths:\n\n- Template with an `IfcSite`: `tool.Project.append_structure_from_template` (`tool/project.py`, line 133) merges the file with `ifcpatch` `MergeProjects`. Afterwards only orphan spatial elements get Blender objects (`create_objects_for_orphan_spatial_elements`, `bim/module/project/operator.py`, line 165). Nothing creates Blender materials for the merged `IfcSurfaceStyle`s.\n- Template without a site: `append_all_types_from_template` calls `bim.append_library_element` per type, which does create the style materials.\n\nThe first path came with ff143a1ddb45ce31cfc202463399a5966d2f8095 (Road and Bridge templates). None of the shipped templates has both a site and styles (Road/Bridge: site, no styles; Demo templates: styles, no site), so the shipped templates do not show it.\n\n**Minimal reproduction**\n\n1. Put an IFC4 template with an `IfcSite` and at least one `IfcSurfaceStyle` (e.g. assigned to a material) into `\u003cdata dir>/templates/projects/`. Example: https://github.com/modelllogik/native-ifc-template/blob/main/template/native_template.ifc\n2. *New Project* with that template.\n3. Project tab → Styles → open any surface style → Shading.\n\n**Proposal**\n\nAfter the merge in the structure path, create the Blender materials for styles that have none, the same way the importer does when a file is opened (`import_ifc.IfcImporter.create_style`), for example by running `create_styles` of an `IfcImporter` on the merged file, like `create_objects_for_orphan_spatial_elements` already does for spatial elements.\n\nWorkaround for users: save the new project and open it again.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nBonsai 0.9.1-alpha261028 (unstable channel), IfcOpenShell 0.9.1a261028, Blender 5.2.0 LTS, Windows. Also seen on Blender 5.4 alpha (macOS) by another user.\n```","author":{"url":"https://github.com/SautaRoc","@type":"Person","name":"SautaRoc"},"datePublished":"2026-11-05T17:48:52Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10134"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4a597736-3b90-5a23-a411-b5701f4b9b3b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE07A:3C4279:123527:19B269:6B046580
html-safe-noncec0e8418e0212d83bd817435b8f85b655423eedb9669d856f02a318b4fddaf635
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDdBOjNDNDI3OToxMjM1Mjc6MTlCMjY5OjZCMDQ2NTgwIiwidmlzaXRvcl9pZCI6IjIwMzkwNTUwOTE1Nzg5ODc5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc883167050ffeee3085d47274ff9645b75fda6f6dd4a1fed4a88f78b3cefae8c
hovercard-subject-tagissue:6228576025
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/10134/issue_layout
twitter:imagehttps://opengraph.githubassets.com/be659bc385346b37fed08426b09f391dbf3f7771353c6a283e572d28e1a330a5/IfcOpenShell/IfcOpenShell/issues/10134
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be659bc385346b37fed08426b09f391dbf3f7771353c6a283e572d28e1a330a5/IfcOpenShell/IfcOpenShell/issues/10134
og:image:altBug Description Observation Creating a new project from a project template that contains an IfcSite (and its storeys) and surface styles: the styles are in the IFC afterwards, but none of them has ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSautaRoc
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/10134#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F10134
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F10134
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10134
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10134
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10134
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests936 (936)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10134
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10134
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
#10278https://github.com/IfcOpenShell/IfcOpenShell/pull/10278
#10178https://github.com/IfcOpenShell/IfcOpenShell/pull/10178
Bonsai: New Project with a template that has a site — merged surface styles get no Blender material, style editor failshttps://github.com/IfcOpenShell/IfcOpenShell/issues/10134#top
#10278https://github.com/IfcOpenShell/IfcOpenShell/pull/10278
#10178https://github.com/IfcOpenShell/IfcOpenShell/pull/10178
https://github.com/SautaRoc
SautaRochttps://github.com/SautaRoc
on Nov 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#issue-6228576025
https://community.osarch.org/discussion/3782/https://community.osarch.org/discussion/3782/
ff143a1https://github.com/IfcOpenShell/IfcOpenShell/commit/ff143a1ddb45ce31cfc202463399a5966d2f8095
https://github.com/modelllogik/native-ifc-template/blob/main/template/native_template.ifchttps://github.com/modelllogik/native-ifc-template/blob/main/template/native_template.ifc
SautaRochttps://github.com/SautaRoc
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Nov 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#event-35270054655
https://github.com/SautaRoc
SautaRochttps://github.com/SautaRoc
on Nov 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#issuecomment-6665937036
https://community.osarch.org/discussion/comment/30695https://community.osarch.org/discussion/comment/30695
https://github.com/SautaRoc
SautaRochttps://github.com/SautaRoc
on Nov 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#issuecomment-6666838457
https://community.osarch.org/discussion/comment/30701https://community.osarch.org/discussion/comment/30701
https://github.com/SautaRoc
SautaRochttps://github.com/SautaRoc
on Nov 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#issuecomment-6681953080
https://github.com/3adoshka
3adoshkahttps://github.com/3adoshka
on Nov 20, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10134#issuecomment-7025756992
#10278https://github.com/IfcOpenShell/IfcOpenShell/pull/10278
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10134
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10134
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.