Andrej730
c81fe97cc2
Fix bim.change_cardinal_point breaking if one of objects had no material
2025-02-28 18:31:13 +05:00
Andrej730
b9f4503206
Paramteric doors/windows - detect previously assigned materials when editing is enabled
...
Example - https://imgur.com/a/FEbSBaX
2025-02-28 18:31:13 +05:00
Andrej730
bd4dc501a2
Pamateric doors/windows - add material select shortcut to UI
...
Example - https://i.imgur.com/UfJTjGz.png
2025-02-28 18:31:13 +05:00
Andrej730
8d1255f0bc
Fix toggling wireframe for odd case when there are no objects linked
...
Noticed investigating #6242
2025-02-28 18:31:13 +05:00
Andrej730
cc7abe6a8d
Fix error applying blender offset to read-only matrix (e.g. during linking)
...
Example:
```
File "\bonsai\bim\module\project\operator.py", line 1815, in execute
self.process_occurrence(shape)
File "\bonsai\bim\module\project\operator.py", line 1952, in process_occurrence
obj.matrix_world = tool.Loader.apply_blender_offset_to_matrix_world(obj, mat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\bonsai\tool\loader.py", line 952, in apply_blender_offset_to_matrix_world
matrix[0][3] = offset_xyz[0]
~~~~~~~~~^^^
ValueError: assignment destination is read-only
```
Noticed investigating #6242
2025-02-28 18:31:12 +05:00
Andrej730
b1c87b1eb4
Set tools hotkeys name to empty string to hide it from tooltip #6238
2025-02-28 18:31:12 +05:00
Andrej730
d37bda6871
cad operators - add descriptions #6238
2025-02-28 18:31:12 +05:00
Andrej730
bb0d156bbf
cad operators - use Blender units for props
2025-02-28 18:31:12 +05:00
Andrej730
277aaca6c5
typing
2025-02-28 18:31:10 +05:00
Andrej730
9187f2d2b5
Bonsai patcher - small fix for cases when Blender restarts
2025-02-28 18:31:10 +05:00
Andrej730
62d53ba62d
Bonsai - recognize ifc2sql database argument as filepath #6227
2025-02-27 18:35:43 +05:00
Andrej730
9055f14bb9
Ifc2Sql - hide IFC output argument as there's already database argument #6227
...
Also handle directory paths more gracefully.
2025-02-27 18:35:43 +05:00
Andrej730
0bd608b6cb
Bonsai - ifcpatch description to include arguments descriptions
...
Also fix a bug with broken patch descriptions if some argument had more than one line for the description.
Example - https://i.imgur.com/1syL4gJ.png
Notcied working on #6227
2025-02-27 18:35:43 +05:00
Andrej730
26b2a7d584
typing
2025-02-27 18:35:43 +05:00
Andrej730
2d0bd9782a
Reuse tool.Blender.add_layout_hotkey_operator
...
Now all tools are using a general method and it should be easier to maintain the consistency between the tools.
Fixes #6238 .
ping @trhyder just in case
2025-02-26 17:55:15 +05:00
Andrej730
746a61a199
Add tool.Blender.KEY_MODIFIERS instead of storing it at workspaces
2025-02-26 17:55:15 +05:00
Andrej730
24df52e2f7
Do not purge orphaned IfcDocumentReferences #6117
2025-02-26 17:55:14 +05:00
Andrej730
257f0b11f5
Fix typo
2025-02-26 17:55:13 +05:00
Andrej730
b4f2039367
Fix bim.purge_unused_openings poll
...
It was returning true regardless whether tool.Geometry.has_openings returned True or not.
2025-02-26 17:55:13 +05:00
Dion Moult
34acd6de35
See #1227 . Implement ATPATH wall connections (going both ways).
2025-02-26 18:13:29 +11:00
Dion Moult
0f3de599a6
Don't break if no area unit defined
2025-02-26 18:13:28 +11:00
Bruno Perdigão
0104a2cc9f
Remove polyline wall size limit restriction. See #6162
2025-02-25 18:06:42 -03:00
Bruno Perdigão
81f4b08b6d
Fix issue where long lines where not being detected by the snapping system.
2025-02-25 18:06:42 -03:00
Bruno Perdigão
10776b7de8
Remove debug print statement
2025-02-25 18:06:42 -03:00
Bruno Perdigão
b0efb648f2
Make snapping system zoom-dependent. See #6162
...
Refactor the snapping system to better organize the weighting and ordering
of snap distances. This change enhances the "stickiness" of snapping points,
allowing for prioritized control over different types of snapping points.
2025-02-25 18:06:42 -03:00
Andrej730
a20a8a68a6
Smal UI fix - display "Types" instead of "Typess"
2025-02-25 18:32:47 +05:00
Andrej730
f8ec8402fe
Remove test for deprecator operator ( c85eb79)
2025-02-25 18:28:48 +05:00
Andrej730
2f6ae1745f
typing
2025-02-25 18:28:48 +05:00
Andrej730
5f4098e5d4
Update type_elements_filtered on changing ifc class
...
Needed after 1d815cdb67
2025-02-25 18:28:47 +05:00
Andrej730
b49cc6c5e9
AuthoringData.data["relating_type_data"]
...
Simplify lots of data keys to just one dictionary relating_type_data, so it will be easier to maintain it and update if needed.
2025-02-25 18:28:47 +05:00
Andrej730
dcc681ac74
Revert a428169 to avoid constant reload of cached data
...
The code was recalculating type_elements and relating_type_id every time Blender trying to check enum items.
Couldn't replicate issue when type duplicated, perhaps it's resolved some other way already.
2025-02-25 18:28:47 +05:00
Andrej730
6de409031e
Fix #6222
...
Mentioned in #6223
2025-02-25 14:21:01 +05:00
Bruno Perdigão
ea274588b0
See #6214 . Fix how extrusion existing angle is calculated.
...
The issue happen when the layer has a negative direction sense.
2025-02-24 20:46:37 -03:00
Bruno Perdigão
e46e1512fa
Fix #6160 where axis snapping in polyline tool were not working consistently
2025-02-24 20:46:26 -03:00
Andrej730
0bd4451ce9
Fix issue not cleaning up the mesh after 76277c35d2
2025-02-24 19:31:36 +05:00
Andrej730
899ada0019
Fix purge unused types test after 3bb4243
2025-02-24 18:52:35 +05:00
Andrej730
f6ae711f6c
Fix feature tests failing due to AuthoringData changes
...
relating_type_id now relies on type_elements which relies on ifc_class_current and they wasn't updated when ifc_class was changed.
Typical failing test looked like "TypeError: bpy_struct: item.attr = val: expected a string enum, not int".
2025-02-24 18:52:35 +05:00
Andrej730
1d815cdb67
Fix issue reloading AuthoringData from workspace at every draw call
...
If data was already loaded for BIMTool ("all") this ` elif ifc_element_type == "all" and AuthoringData.data["ifc_element_type"] is not None:` would always fail and this `AuthoringData.data["ifc_element_type"] != ifc_element_type` would always result to True, constantly recalculating data on every draw call.
This may uncover some issues that were hidden by the constant update (e.g. the bug fixed in the next commit).
Simplified it so now ifc_element_type is almost always referring to either ifc class or None. It's still using "all" in the BIMTool itself but then it's converted to None when passed to draw methods.
2025-02-24 18:52:35 +05:00
Andrej730
ce6339869d
Fix some feature tests
2025-02-24 18:52:35 +05:00
Andrej730
5eb9cb2ee4
len(get_inverse) -> get_total_inverses
2025-02-24 18:52:35 +05:00
Andrej730
6eda4e389c
typing
2025-02-24 18:52:34 +05:00
Andrej730
0783f8082e
black .
2025-02-24 18:52:34 +05:00
Andrej730
e06684e274
Comment out outdated code #6200
2025-02-24 16:46:32 +05:00
Andrej730
57d6e9b544
Fix error reassigning class for structural items
2025-02-24 15:15:54 +05:00
Andrej730
1d2ac9426d
Fix error during class reassignment after 43cc7a0
2025-02-24 15:15:54 +05:00
Andrej730
e79a85a4fd
bim.edit_container_attributes - remove deprecated operator
...
Currently you can edit container name directly from spatial manager, so this operator is no longer needed (and it also was missing from UI either way).
2025-02-24 15:15:54 +05:00
Andrej730
76277c35d2
Fix for 365393aa07
...
ahh, forgot that representation is already removed at this point
2025-02-24 15:01:00 +05:00
Andrej730
ee8a3927b4
Fix displaying some attr types names after e8cb9e7 #6216
2025-02-24 14:20:49 +05:00
Andrej730
365393aa07
Fix #6209 after 67bac44
2025-02-24 14:01:24 +05:00
Dion Moult
973c9e2ec9
See #1227 . Implement axis updating for new wall join code.
2025-02-23 18:59:17 +11:00