Title: Bonsai: relaunch the clipping-plane refresh modal after a .blend reload (#4641) by petruconduraru · Pull Request #8347 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: relaunch the clipping-plane refresh modal after a .blend reload (#4641) by petruconduraru · Pull Request #8347 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: relaunch the clipping-plane refresh modal after a .blend reload (#4641) by petruconduraru · Pull Request #8347 · IfcOpenShell/IfcOpenShell
Description: Addresses #4641. Note: the diagnosis below is verified by code inspection and runtime introspection, but the fix itself could not be verified in an automated/headless harness, it needs a modal operator plus a real 3D viewport plus a .blend save/reopen round-trip. It should be confirmed in GUI Blender before merge (create a clipping plane, save the .blend, quit, reopen: the clip should be live without recreating the plane). Root cause Viewport clipping is driven by the modal operator bim.refresh_clipping_planes, which keeps RegionView3D.clip_planes / use_clip_planes in sync with the plane objects. Modal operators do not survive a .blend reload. On reopen: props.clipping_planes and the plane objects are restored from the blend. RegionView3D.clip_planes + use_clip_planes are also saved viewport state, so the model still renders clipped by the last-applied planes → looks "stuck / not updated". The RefreshClippingPlanes modal is gone, so nothing re-syncs when a plane moves. Creating a new plane calls refresh_clipping_planes again → the modal restarts → clipping is live again. This matches the report exactly. This is not specific to IFC2X3 or linked IFCs; those are incidental (with linked models the .blend is the file you reopen, so you land in this state). Fix In the load_post handler toggle_decorations_on_load (project/decorator.py) that already re-installs the clipping-plane decorator, also relaunch the refresh modal when saved clipping planes exist, via bpy.app.timers (guarded for background sessions and requiring a VIEW_3D area, since a modal can't be started directly inside a load_post handler). No effect when no clipping planes exist. Generated with the assistance of an AI coding tool.
Open Graph Description: Addresses #4641. Note: the diagnosis below is verified by code inspection and runtime introspection, but the fix itself could not be verified in an automated/headless harness, it needs a modal ope...
X Description: Addresses #4641. Note: the diagnosis below is verified by code inspection and runtime introspection, but the fix itself could not be verified in an automated/headless harness, it needs a modal ope...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8347
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:66c14ba1-8120-a98b-7cb5-90b848c1a0a1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DB1C:3F9CD1:2549AAD:30BD156:6B054DAF |
| html-safe-nonce | 3aaef9d63f0ee97a3a23e4b189f90881ec2382e6c2e14d37d3cd0f00de17bc9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFDOjNGOUNEMToyNTQ5QUFEOjMwQkQxNTY6NkIwNTREQUYiLCJ2aXNpdG9yX2lkIjoiMTAwMzEwNDkwMzg1OTg4MzQzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | faafe62a1946285240163e9ab9b24c748db3570a9fd31acf962c84f1c3f4d4af |
| hovercard-subject-tag | pull_request:4005983815 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/IfcOpenShell/IfcOpenShell/pull/8347/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Addresses #4641. Note: the diagnosis below is verified by code inspection and runtime introspection, but the fix itself could not be verified in an automated/headless harness, it needs a modal ope... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width