Andrej730
53da00a5b7
append_asset - fix possible errors with assume_asset_uniqueness_by_name=False after f43e33b
...
If `assume_asset_uniqueness_by_name` is `False`, then we don't really need `SafeRemovalContext`.
2025-04-11 19:55:25 +05:00
Andrej730
b5bc53bdf6
Renaming style from UI not to add .xxx Blender suffix to style name
...
Set style name explicitly, this way what user does in UI is what they get in IFC.
Previously confusingly if you set style name to "Glass" and "Glass" already existed, you would get "Glass.001" style internally but "Glass" name in UI.
2025-04-11 19:55:25 +05:00
Andrej730
bc0fbf744a
bim.search - set found object as active
...
As sometimes it's hard of find a selected object in outliner if it's not active.
2025-04-11 19:55:25 +05:00
Andrej730
53b26a9b66
typing
2025-04-11 19:55:25 +05:00
Thomas Krijnen
858e73c9d9
IfcPropertySetDefinitionSet in xml serializer #6330
2025-04-11 15:53:27 +02:00
Thomas Krijnen
952400bd58
Support defined types with instance references in parser (IfcPropertySetDefinitionSet; #6330 )
2025-04-11 15:52:40 +02:00
Andrej730
ffffcc576e
assign_class - reload representation after assignment
...
Just to make sure user will set what was actually saved to IFC right away. To prevent confusion when they see it only after model was reloaded completely.
bonsai-0.8.2-alpha2504101416
2025-04-10 19:16:04 +05:00
Andrej730
d8102d848d
Fix bug with the first object rename after class assignment
...
The problem was that during class assignment, it was setting the object name and `is_renaming` flag but only then linking to IFC. Since object wasn't linked to IFC, name callback wasn't triggered and `is_renaming` wasn't reset and first rename wouldn't work.
Now it's just not setting the flag if object is not linked to IFC, as there's no callback then and don't need to protect from it.
bonsai-0.8.2-alpha2504101249
2025-04-10 17:44:06 +05:00
Andrej730
9407faf1f9
vs-cfg.md - support cmake 4.0.0
2025-04-10 17:44:06 +05:00
Andrej730
1e3f1e7dfc
Show assign/reference container buttons if container has no elements #6514
bonsai-0.8.2-alpha2504100556
2025-04-10 10:54:46 +05:00
Andrej730
8aad28c730
bim.assign_class - skip ifc objects to prevent errors
bonsai-0.8.2-alpha2504091327
2025-04-09 18:26:55 +05:00
Andrej730
81943ec9e5
bim.assign_class - apply modifiers
...
Noticed working on #6500
2025-04-09 18:26:55 +05:00
Andrej730
5b15de50b6
bim.assign_class - use blender operators in a more safe way
...
Use temp_override or modify selection not to modify some object by accident, because this operator can also be called not from UI but by providing `object` argument.
2025-04-09 18:26:54 +05:00
Andrej730
4d50dce16d
bim.assign_class - use get_selected_objects
2025-04-09 18:26:54 +05:00
Andrej730
69b5d0940f
bim.assign_class - flip normals if matrix is negative #6500
...
object.transform_apply doesn't preserve normals (https://projects.blender.org/blender/blender/issues/102266 )
2025-04-09 18:26:54 +05:00
Andrej730
273d6c1039
Experimental geo nodes integration
2025-04-09 18:26:54 +05:00
Andrej730
24ef03c96e
bim.assign_container - skip aggregated elements #6514
...
New description - https://i.imgur.com/UeSPtEe.png
2025-04-09 18:26:54 +05:00
Andrej730
cc4553d3c9
bim.aggregate_assign_object - clarification
2025-04-09 18:26:54 +05:00
Andrej730
cf1f74e260
typing
2025-04-09 18:26:53 +05:00
Andrej730
3052c6e578
black .
2025-04-09 18:26:53 +05:00
Bruno Perdigão
0eb70b7fc3
See #6397 - Fix extrusion profile editing issue.
...
Profile transformations now correctly use the perpendicular value of the offset.
2025-04-08 20:07:46 -03:00
Bruno Perdigão
eb863bb2aa
Snap - Filter out 2D bounding boxes that are too far from the camera view.
2025-04-08 18:11:01 -03:00
Andrej730
345a6e72d9
Make referencing in structure more discoverable #6514
...
Didn't wanted to disrupt existing operators, but we probably should deprecate them.
bonsai-0.8.2-alpha2504081055
2025-04-08 15:54:41 +05:00
Andrej730
8b775ea30f
bim.assign_container - small clarification
2025-04-08 15:54:41 +05:00
Thomas Krijnen
b712f30ad3
Don't assign material as style when it doesn't have any styles #6314
2025-04-07 21:25:33 +02:00
Andrej730
0bbe1aad5b
Fix UI errors in Blender 4.2 (missing MOUSE_MMB_SCROLL icon)
...
Noticed #6515
bonsai-0.8.2-alpha2504071135
2025-04-07 16:20:22 +05:00
Andrej730
29de264b43
ifc5d - remove Qto_BodyGeometryValidation from ifc4x3 base qtos ( 6c04669)
...
As it's not part of base quantities and it would be unexpected for user if some additional qto would start calculating for every IfcProduct.
2025-04-07 16:20:22 +05:00
Andrej730
f4714d2012
ifc5d - avoid overriding results from previous queries after f63d6b8
2025-04-07 16:20:21 +05:00
Andrej730
8bfdabab80
ifc5d IfcOpenShell.calculate - warn on missing formulas
2025-04-07 16:20:21 +05:00
Andrej730
50c1220730
typing
2025-04-07 16:20:21 +05:00
Bruno Perdigão
c280550e30
Measure Tool - fix issue where the area highlight was incorrectly displayed in polyline mode.
bonsai-0.8.2-alpha2504051503
2025-04-05 11:55:05 -03:00
Bruno Perdigão
2bf303686c
Snap - Improve how viewport zoom affects snapping.
2025-04-05 11:45:56 -03:00
Bruno Perdigão
bb91416c4e
Snap - Fix creation of 2D bounding boxes
...
Previously, objects with 2D bounding boxes outside the view were still being added. This issue is now resolved.
Additionally, implement simple AABB detection to check if the bounding box is within the viewport.
2025-04-04 20:19:25 -03:00
Bruno Perdigão
47e8b978af
Snap - filter visible objects before creating the 2d bouding box
2025-04-04 18:38:07 -03:00
Andrej730
50eae4ae19
Fix typo, expose Extend To Underside description
bonsai-0.8.2-alpha2504041404
2025-04-04 19:04:03 +05:00
Andrej730
979183b64b
Make adding openings more discoverable
...
1) It's back as Shift-O hotkey in BIM tool - https://i.imgur.com/XfmfqNY.png
2) It's always visible in Voids UI - https://i.imgur.com/rO6nOSw.png
2025-04-04 19:04:03 +05:00
Andrej730
dc2f788326
model/wall.py - poll messages
2025-04-04 19:04:03 +05:00
Andrej730
7d12880eb9
BIM Tool - add descriptions to "Align" section buttons
2025-04-04 19:03:08 +05:00
Andrej730
6676c7f62e
typing
2025-04-04 19:03:08 +05:00
Thomas Krijnen
c0e8c3d1b5
Update ci-ifcopenshell-docker.yml - action versions
2025-04-04 14:11:41 +02:00
Andrej730
e9245efd37
bim.browse_external_style - cache enum items #6496 #5673
bonsai-0.8.2-alpha2504031440
bonsai-0.8.2-alpha2504031439
bonsai-0.8.2-alpha2504031438
2025-04-03 19:37:51 +05:00
Andrej730
de287395d2
Bump Blender build in tests to 4.4
bonsai-0.8.2-alpha2504031423
bonsai-0.8.2-alpha2504031422
2025-04-03 19:18:42 +05:00
Andrej730
938d72ebe3
Fix UI issue with props missing ( 65c99c5)
bonsai-0.8.2-alpha2504031323
bonsai-0.8.2-alpha2504031307
2025-04-03 18:06:49 +05:00
Andrej730
605c86afc5
Fix void bim tests after bim.add_potential_opening was removed
2025-04-03 18:06:48 +05:00
Andrej730
68cf8ee247
BIM tests - replace some class assignment with PanelSpy version
2025-04-03 18:06:48 +05:00
Andrej730
a452d1d361
Fix failing bim tests after 5b33c60
2025-04-03 18:06:48 +05:00
Andrej730
71067e4a14
Fix style test in Blender 4.4
2025-04-03 18:06:48 +05:00
Andrej730
7bacdbf8dd
typing
2025-04-03 17:45:49 +05:00
Thomas Krijnen
54c1dfdb77
Update ci-ifcopenshell-docker.yml
2025-04-03 09:29:49 +02:00
Thomas Krijnen
834123ad14
Update release.yml - add workflow_dispatch
2025-04-03 09:27:32 +02:00