Title: Fix #6652: Extend grab selection to include BBIM_Array members by theoryshaw · Pull Request #7968 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Fix #6652: Extend grab selection to include BBIM_Array members by theoryshaw · Pull Request #7968 · IfcOpenShell/IfcOpenShell
X Title: Fix #6652: Extend grab selection to include BBIM_Array members by theoryshaw · Pull Request #7968 · IfcOpenShell/IfcOpenShell
Description: Summary When pressing G (grab/move) on any member of a BBIM_Array, Bonsai now automatically expands the selection to include the array parent and all its children before the move operator runs — matching the existing behavior for aggregates and nests. Previously, grabbing an array child would move only that child, breaking the array's spatial relationship. Users had to manually select the full array before moving. How It Works The fix is a single block added to OverrideMoveSelect._execute in geometry/operator.py, inserted between the existing aggregate and nest handling blocks. For each selected object: Check for a BBIM_Array pset. Resolve the array parent via pset["Parent"] (a GlobalId). If the selected object is a child (its GlobalId differs from pset["Parent"]), deselect it. Expand selection to the full array — parent + all children — via tool.Blender.Modifier.Array.get_all_objects(). Set the active object to the array parent. Aggregates take priority over arrays (checked first), and arrays take priority over nests, consistent with the existing ordering. Test Plan Select an array child and press G — full array (parent + all children) should be selected and move together. Select the array parent and press G — same result. Select multiple objects from different arrays and press G — each array should be fully selected. Verify aggregate grab behavior is unchanged. Verify nest grab behavior is unchanged. Verify non-array, non-aggregate, non-nest objects move normally. Notes This PR contains AI-generated code (the added block in OverrideMoveSelect._execute).
Open Graph Description: Summary When pressing G (grab/move) on any member of a BBIM_Array, Bonsai now automatically expands the selection to include the array parent and all its children before the move operator runs — ma...
X Description: Summary When pressing G (grab/move) on any member of a BBIM_Array, Bonsai now automatically expands the selection to include the array parent and all its children before the move operator runs — ma...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/7968
X: @github
Domain: github.com
IPv4 address: 140.82.114.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:03d876d2-53ba-a7ed-2ebf-cedcc6267cba |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E04:20A7E7:7CB6A4:A0AAF3:6B05089A |
| html-safe-nonce | 82e8639e3b9459bf6a8d322335eb0af65378d7e9625df9c17b5243e730458810 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTA0OjIwQTdFNzo3Q0I2QTQ6QTBBQUYzOjZCMDUwODlBIiwidmlzaXRvcl9pZCI6IjYxNjYxNTYwNzMzMDU5NjY3NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0163ce9e4fc0ef6b32428749efb2d241635a62402d1be64901d70f0622486d39 |
| hovercard-subject-tag | pull_request:3551885512 |
| 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/7968/files |
| twitter:image | https://avatars.githubusercontent.com/u/507113?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/507113?s=400&v=4 |
| og:image:alt | Summary When pressing G (grab/move) on any member of a BBIM_Array, Bonsai now automatically expands the selection to include the array parent and all its children before the move operator runs — ma... |
| 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