René's URL Explorer Experiment


Title: `bim.update_current_style` — switching to External style has no visible effect in the viewport · Issue #7990 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: `bim.update_current_style` — switching to External style has no visible effect in the viewport · Issue #7990 · IfcOpenShell/IfcOpenShell

X Title: `bim.update_current_style` — switching to External style has no visible effect in the viewport · Issue #7990 · IfcOpenShell/IfcOpenShell

Description: Bug Description Description: Clicking the "Update Current Style" button (the refresh icon in the Styles panel) with the style type set to External does nothing visually in the viewport, even when the object is selected and the material h...

Open Graph Description: Bug Description Description: Clicking the "Update Current Style" button (the refresh icon in the Styles panel) with the style type set to External does nothing visually in the viewport, even when t...

X Description: Bug Description Description: Clicking the "Update Current Style" button (the refresh icon in the Styles panel) with the style type set to External does nothing visually in the viewport, e...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`bim.update_current_style` — switching to External style has no visible effect in the viewport","articleBody":"### Bug Description\n\n**Description:**\n\nClicking the \"Update Current Style\" button (the refresh icon in the Styles panel) with the style type set to `External` does nothing visually in the viewport, even when the object is selected and the material has a valid `IfcExternallyDefinedSurfaceStyle` pointing to a `.blend` file.\n\n**Root cause (two compounding problems):**\n\n1.  **Fast-path flip is a no-op when state is already External.** `switch_shading` has a fast path for materials that already have both `BIM_Output_External` and `BIM_Output_Flat` nodes: it just flips `is_active_output` between them. However, after `activate_external_style` first sets up the dual-branch, `BIM_Output_External` starts as the active output. Clicking the button again reads `active_style_type = 'External'`, finds the dual-branch, sets `ext.is_active_output = True` (already True) and `fast.is_active_output = False` (already False) — a complete no-op.\n    \n2.  **Even when the flip does execute, `material.update_tag()` alone does not trigger a viewport redraw.** Blender does not re-evaluate the shader from a material-level `update_tag()` call alone; `node_tree.update_tag()` and `view_layer.update()` are also required.\n    \n\n**Fix:**\n\nRemove the fast-path entirely for the External case. Always call `bpy.ops.bim.activate_external_style`, which re-loads the latest material from the `.blend` file, rebuilds the external branch via `update_external_branch` / `setup_dual_branch`, and goes through Blender's normal operator path (clipboard copy/paste) which reliably triggers a viewport refresh.\n\n**Steps to reproduce:**\n\n1.  Open a model with an  `IfcExternallyDefinedSurfaceStyle`  pointing to a  `.blend`  file\n2.  Select an object using that style\n3.  Ensure the style type dropdown shows  `External`\n4.  Click the refresh (update current style) button\n5.  Viewport does not change\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2026-04-22T18:30:29Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7990"}

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:ced46651-72a5-dc91-5548-092e8bfb2725
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFE6:2F671E:48FC28:61012D:6B04BE36
html-safe-nonce8230abd0298a7a28256e7133523f69dafed501236aad90a550391dde5d0e304b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkU2OjJGNjcxRTo0OEZDMjg6NjEwMTJEOjZCMDRCRTM2IiwidmlzaXRvcl9pZCI6Ijg0Nzg3MjYxODE0MDA1NzE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2167e7d38ae5a92ec25871631f936ecbd3f1af56edea4d9258fee44e74f6bda2
hovercard-subject-tagissue:4311070591
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/7990/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f99f45bf9c162ca523d48842eaae0a329eb45026d0778e7cf1ade70d974b8914/IfcOpenShell/IfcOpenShell/issues/7990
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f99f45bf9c162ca523d48842eaae0a329eb45026d0778e7cf1ade70d974b8914/IfcOpenShell/IfcOpenShell/issues/7990
og:image:altBug Description Description: Clicking the "Update Current Style" button (the refresh icon in the Styles panel) with the style type set to External does nothing visually in the viewport, even when t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametheoryshaw
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
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
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/7990#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F7990
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%2F7990
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/7990
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/7990
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/7990
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 requests939 (939)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/7990
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/7990
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
bim.update_current_style — switching to External style has no visible effect in the viewporthttps://github.com/IfcOpenShell/IfcOpenShell/issues/7990#top
https://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
https://github.com/theoryshaw
theoryshawhttps://github.com/theoryshaw
on Apr 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#issue-4311070591
theoryshawhttps://github.com/theoryshaw
on Apr 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#event-24767544907
theoryshawhttps://github.com/theoryshaw
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
on Apr 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#event-24767545755
theoryshawhttps://github.com/theoryshaw
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Apr 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#event-24767545770
falken10vdlhttps://github.com/falken10vdl
on Apr 22, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#event-24768697527
Fix IfcOpenShell#7990 - Fix update_current_style not refreshing viewporthttps://github.com/falken10vdl/IfcOpenShell/commit/f37b4d8ca4cfe67b92275ca675de95a1efca2318
IfcOpenShell#7990https://github.com/IfcOpenShell/IfcOpenShell/issues/7990
https://docs.github.com/articles/closing-issues-via-commit-messages
f37b4d8https://github.com/falken10vdl/IfcOpenShell/commit/f37b4d8ca4cfe67b92275ca675de95a1efca2318
Merge pull request #5 from theoryshaw/fix-update-current-style-extern…https://github.com/falken10vdl/IfcOpenShell/commit/efed859e421bdb269ea6d2d06519bf01c76d187e
#5https://github.com/falken10vdl/IfcOpenShell/pull/5
https://docs.github.com/articles/closing-issues-via-commit-messages
efed859https://github.com/falken10vdl/IfcOpenShell/commit/efed859e421bdb269ea6d2d06519bf01c76d187e
theoryshawhttps://github.com/theoryshaw
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Apr 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#event-24858554946
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/7990#issuecomment-4886665224
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/7990
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/7990
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
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.