Dion Moult
78173dd546
Add basic tests for new web module
2024-08-03 23:12:21 +10:00
Dion Moult
2196c16097
Fix failing georeference and spatial core/tool/bim tests and clean dead code
2024-08-03 23:08:35 +10:00
Andrej730
cb80081473
fix covering test and fix bug adding coverings in non-meters projects
...
Noticed that adding a covering in millimeters project didn't worked - the reason was that shapely was using tolerance in ifc project units when get_obj_base_points was returning points in si (blender always operates in meters internally).
I've changed get_obj_base_points to return data in project units and get_bmesh_from_polygon to convert it back to meters for Blender.
It's probably would be better to always operate in si until we need to save data to ifc but I'm not that familiar with that module to just change it everywhere.
Ping @maxfb87 just in case.
2024-08-01 18:01:58 +05:00
Andrej730
6cb063ebd2
fix bim drawing module test after 47704b1
2024-07-31 19:00:34 +05:00
Andrej730
17a061f917
fix bim test after e6ac012
...
when Types collection was renamed to IfcTypeProduct
2024-07-31 19:00:34 +05:00
Andrej730
51db65b868
fix resource bim tests after c399eb2
...
IfcLaborResource doesn't actually support IfcQuantityArea quantities
2024-07-31 19:00:34 +05:00
Andrej730
faab9e04a3
fix resource bim tests after 1a4e467
...
operator prop was deprecated a long time ago in e2d4a3a
2024-07-31 19:00:34 +05:00
Andrej730
bea92455dd
clean up bim tests from trailing spaces
2024-07-31 19:00:34 +05:00
Andrej730
6be1b80a82
fix container operators after a9a4b0c + mention a limitation
...
If you would select container1 + obj1 with intention to copy obj1 to container1 - running bim.copy_to_container would also copy container1.
Similar issue for referencing/dereferncing structures in other structures in ifc4x3.
2024-07-31 19:00:34 +05:00
Andrej730
4c5e90dc77
fix bim tests after collections no longer represent spatial hierarchy
2024-07-31 19:00:33 +05:00
Andrej730
f860973172
fix spatial module bim tests after a9a4b0c
2024-07-31 19:00:33 +05:00
Andrej730
94ed0cd59c
fix bim.assign_container uses after a9a4b0c + add TODOs
2024-07-31 19:00:33 +05:00
Andrej730
93ea1f98ac
fix qto tests after 8c3d10a
2024-07-31 19:00:33 +05:00
Andrej730
b68a92f251
remove bim.assign_objects_base_qto from tests (removed in 8c3d10a)
2024-07-31 19:00:33 +05:00
Andrej730
902da2e720
remove bim.pie_update_container
...
as we no longer rely on collections for container assignment
2024-07-31 19:00:33 +05:00
Andrej730
133494af97
remove bimtester from bbim (related to 7157590)
2024-07-31 19:00:32 +05:00
Andrej730
64fc9462b6
fix bim attribute tests after 9122f00
2024-07-31 19:00:32 +05:00
Andrej730
3d86e5fff3
fix bim geometry tests after fccf56d
2024-07-31 19:00:32 +05:00
Andrej730
a24bb069aa
fix bim tests after changes in quantities calculations
2024-07-31 19:00:32 +05:00
Andrej730
c86a4c88a9
fix broken search test after 410fff6
2024-07-31 19:00:32 +05:00
Andrej730
139627b6ec
fix bim tests after b9f76042b
2024-07-30 20:46:16 +05:00
Andrej730
6f2eb0a116
fix bim tests after a156864
2024-07-30 20:46:16 +05:00
Andrej730
d26561acee
fix for bim style module test
2024-07-30 20:46:16 +05:00
Andrej730
52130a3eb6
fix materials / styles bim tests #4843
2024-07-29 18:53:12 +05:00
Andrej730
732bb93826
fix duplicated lines in 2575348
2024-07-29 18:53:11 +05:00
Blender Defender
4a311fe4de
fix: Remove the "ifc_patch_args" property ( #5095 )
...
* fix: Remove the "ifc_patch_args" property
This property has been removed, because patch recipes with arguments other than the boilerplate arguments automatically display these arguments as properties, and patch recipes that don't allow more arguments than the boilerplate arguments fail, if "ifc_patch_args" is not None or "[]". The test cases have been adjusted accordingly.
* style: run the black formatter to fix failing checks
2024-07-27 22:58:48 +10:00
Dion Moult
0dc084d785
Refactor georeferencing properties to remove unnecessary blender_enh/project_north.
2024-07-14 09:06:01 +10:00
Dion Moult
b4482780cf
Linking models now acommodates files with different project or map units combinations correctly
2024-07-12 23:58:18 +10:00
Dion Moult
ff662fdfcf
Merging projects now accomodates models with different project norths
2024-07-08 11:38:42 +10:00
Dion Moult
a3844fe098
More tests and fixes for linking in models with different project norths
2024-07-07 23:59:13 +10:00
Dion Moult
22b7027746
Fix bug where automatic false origin detection didn't do anything if linking from an empty Blender session
2024-07-07 15:53:06 +10:00
Dion Moult
4e9f2ea4b2
Add georeferencing integration tests
2024-06-30 17:01:39 +10:00
Dion Moult
2efeb6edb3
Fix bug where context has no active_object when creating a new project from File > New with a preset
2024-06-29 22:20:08 +10:00
Dion Moult
3aba82f608
Ensure all project feature tests pass
2024-06-26 17:14:39 +10:00
Andrej730
2fbac57faf
remove bim.unlink_material #4843
2024-06-11 18:26:19 +05:00
Andrej730
d6a72bd2b6
Fix test after cf9a94a79
2024-04-18 10:48:21 +02:00
Andrej730
a37c87cf4c
Fix tests involving changes in Blender 4.1 (will fail on Blender <4.1)
...
Basically in Blender 4.1 they've changed a way renaming IDs works if name already existed before and those tests will stop working on Blender <4.1, see https://projects.blender.org/blender/blender/issues/119955
2024-04-18 10:45:31 +02:00
Andrej730
bdfdac24e1
Fix test in 1c1035e
...
tag @brunoperdigao for information
2024-04-18 10:45:31 +02:00
Andrej730
a7ed8e4328
black format
2024-04-18 10:45:30 +02:00
Andrej730
4f92b3587c
fix styles tests
2024-04-17 15:00:40 +02:00
Andrej730
6acdadba75
Fix tests, clean up file creating empty project
...
To fix tests changed bim.unlink_object not to unlink original blender materials as they might be used elsewhere.
2024-04-17 15:00:40 +02:00
Andrej730
d5384e76eb
fix tests
2024-04-17 15:00:39 +02:00
Andrej730
91765d3156
fix test after 7634e71
2024-04-17 15:00:39 +02:00
Andrej730
1a449905f4
fix linked ifc selectability toggle
2024-04-17 14:58:13 +02:00
Andrej730
2fadfc8eff
fix load/unload linked ifc tests
2024-04-17 14:58:13 +02:00
Andrej730
4a513e1e41
fix linked ifc visibility toggle tests
2024-04-17 14:58:13 +02:00
Andrej730
812c2652d3
fix linked ifc wireframe mode toggle
2024-04-17 14:58:13 +02:00
Andrej730
4490efc017
Fix ifc linking tests
2024-04-17 14:54:42 +02:00
Bruno Perdigão
ed7b337a40
Linked aggregate preserve names ( #4135 )
...
* added simples linked aggregate test
* small fix in remove_old_connections function
* added test for refresh linked aggregate
* refresh linked aggregates now preserves the objects original name
* small fix in recreate_connections function
* tests for Refresh Linked Aggregate
* test for Refresh Linked Aggregate after copying an object
* small deletion
* added custom incremental naming
* small fix in tests
* small fix on the number for renaming
2024-04-16 13:28:46 +02:00
Andrej730
8a1149f0de
Fix a few uses of assigning/unassigning agregation after 165262933
2024-04-16 11:17:07 +02:00