René's URL Explorer Experiment


Title: Bonsai: Update Current Style no longer reloads external .blend styles (regression from #8342) · Issue #9477 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: Update Current Style no longer reloads external .blend styles (regression from #8342) · Issue #9477 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: Update Current Style no longer reloads external .blend styles (regression from #8342) · Issue #9477 · IfcOpenShell/IfcOpenShell

Description: Problem The refresh button next to the style type dropdown in the Styles panel (bim.update_current_style, Update Current Style) no longer picks up changes made to an external .blend style. After editing and saving the material in the ref...

Open Graph Description: Problem The refresh button next to the style type dropdown in the Styles panel (bim.update_current_style, Update Current Style) no longer picks up changes made to an external .blend style. After ed...

X Description: Problem The refresh button next to the style type dropdown in the Styles panel (bim.update_current_style, Update Current Style) no longer picks up changes made to an external .blend style. After ed...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Update Current Style no longer reloads external .blend styles (regression from #8342)","articleBody":"## Problem\n\nThe refresh button next to the style type dropdown in the Styles panel (`bim.update_current_style`, *Update Current Style*) no longer picks up changes made to an external `.blend` style. After editing and saving the material in the referenced `.blend`, clicking the button (or SHIFT+CLICK to update all styles) leaves the old material in the model.\n\nThis button was added in 6a2bbfa85c for #3293 (\"Option to batch-reload all external IFC styles\"), so reloading is its purpose.\n\n## Steps to reproduce\n\n1. Have an `IfcSurfaceStyle` with an `IfcExternallyDefinedSurfaceStyle` whose `Location` points to a material in a `.blend` file, loaded so the material is in External (Pretty) mode.\n2. Change that material in the `.blend` file and save it.\n3. In Bonsai, select an object that uses the style and click *Update Current Style* in the Styles panel.\n\n**Expected:** the material is re-appended from the `.blend` and shows the changes.\n**Actual:** nothing changes.\n\n## Cause\n\n#8342 (c9f991a690) introduced dual-branch materials: the external node graph is copied into the material once, next to a flat branch, with outputs `BIM_Output_External` and `BIM_Output_Flat`. For those materials, `Style.switch_shading()` now just toggles which output is active and returns:\n\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/23f3874de19d398451f8926722dc33c21aff5b74/src/bonsai/bonsai/tool/style.py#L977-L984\n\n`UpdateCurrentStyle` only sets `active_style_type` on each material, whose update callback ends in `switch_shading()`:\n\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/23f3874de19d398451f8926722dc33c21aff5b74/src/bonsai/bonsai/bim/module/style/operator.py#L208-L251\n\nSo `bim.activate_external_style`, the only code path that re-appends the material from the `.blend`, is never reached. Before #8342, `switch_shading(\"External\")` always called `bim.activate_external_style`, which is why the button used to reload the style.\n\nTrace from temporary debug prints, clicking the button on a wall whose materials were already External:\n\n```\nmat 'GS_Red Hollow Clay Blocks' (#4086400): 'External' -> 'External'\nupdate_shading_style: has_blender_external_style=True Location='../../../../OD_Submodules/OD_Textures/Materials.blend'\nswitch_shading: branch outputs: ext='BIM_Output_External' fast='BIM_Output_Flat'\n  -> dual-branch: activated BIM_Output_External\n```\n\nAffects `v0.9.0` (checked at 23f3874de1) and `v0.8.0`.\n\n## Proposed fix\n\nKeep the fast path in `switch_shading()`: viewport shading changes and the Flat/Pretty toggle set `active_style_type` on every material and shouldn't read from disk. In `UpdateCurrentStyle`, when the style type is External, call `bim.activate_external_style` for each updated material, and for all IFC materials on SHIFT+CLICK. For dual-branch materials this goes through `Style.update_external_branch()`, which replaces only the external branch and leaves the flat branch alone. PR to follow.\n","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-09-11T20:15:25Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9477"}

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:8d4c496e-6735-7248-b1d1-03b6e24d0d53
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC6E6:1AC6A2:8D395C:BE1AE5:6B04AA7A
html-safe-nonce97dd0af76b1ff55eb2c5e4874ce6dfa64102be1beefb24cc2edfb00557a760d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkU2OjFBQzZBMjo4RDM5NUM6QkUxQUU1OjZCMDRBQTdBIiwidmlzaXRvcl9pZCI6IjQ1NDEwNDk5NzAxNjU1OTA2NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac359b23dcf927c8185efe88b47745a9d5d9ea9fc6effa11df26d4c6dceadf7e11
hovercard-subject-tagissue:5428582815
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/9477/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b23611cd569e0bd8ac598904ba5438308a96b59ca0b614f774c0ad8b85ca7b7d/IfcOpenShell/IfcOpenShell/issues/9477
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b23611cd569e0bd8ac598904ba5438308a96b59ca0b614f774c0ad8b85ca7b7d/IfcOpenShell/IfcOpenShell/issues/9477
og:image:altProblem The refresh button next to the style type dropdown in the Styles panel (bim.update_current_style, Update Current Style) no longer picks up changes made to an external .blend style. After ed...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametheoryshaw
hostnamegithub.com
expected-hostnamegithub.com
None188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b
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
release557cfbac6cdb532730c95c90f2cefdc0c4128029
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/9477#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9477
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%2F9477
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/9477
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9477
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9477
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 requests937 (937)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/9477
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9477
#9478https://github.com/IfcOpenShell/IfcOpenShell/pull/9478
Bonsai: Update Current Style no longer reloads external .blend styles (regression from #8342)https://github.com/IfcOpenShell/IfcOpenShell/issues/9477#top
#9478https://github.com/IfcOpenShell/IfcOpenShell/pull/9478
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Sep 11, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9477#issue-5428582815
6a2bbfahttps://github.com/IfcOpenShell/IfcOpenShell/commit/6a2bbfa85cf2fab1f2e27a0d82442cf952b72199
#3293https://github.com/IfcOpenShell/IfcOpenShell/issues/3293
#8342https://github.com/IfcOpenShell/IfcOpenShell/pull/8342
c9f991ahttps://github.com/IfcOpenShell/IfcOpenShell/commit/c9f991a6900ca1d52551155dd73a25852f28c600
IfcOpenShell/src/bonsai/bonsai/tool/style.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/23f3874de19d398451f8926722dc33c21aff5b74/src/bonsai/bonsai/tool/style.py#L977-L984
23f3874https://github.com/IfcOpenShell/IfcOpenShell/commit/23f3874de19d398451f8926722dc33c21aff5b74
IfcOpenShell/src/bonsai/bonsai/bim/module/style/operator.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/23f3874de19d398451f8926722dc33c21aff5b74/src/bonsai/bonsai/bim/module/style/operator.py#L208-L251
23f3874https://github.com/IfcOpenShell/IfcOpenShell/commit/23f3874de19d398451f8926722dc33c21aff5b74
#8342https://github.com/IfcOpenShell/IfcOpenShell/pull/8342
23f3874https://github.com/IfcOpenShell/IfcOpenShell/commit/23f3874de19d398451f8926722dc33c21aff5b74
theoryshawhttps://github.com/theoryshaw
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Sep 11, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9477#event-30997183451
falken10vdlhttps://github.com/falken10vdl
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#9478https://github.com/IfcOpenShell/IfcOpenShell/pull/9478
on Oct 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9477#event-32510800754
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9477
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9477
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
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.