Dion Moult
1fc4b921e6
Fix failing tests and optimise brick tests.
2024-04-16 10:25:02 +02:00
Dion Moult
ae0a341c95
Fix #3551 . Project specific pset templates now show up in the pset template editor.
2024-04-16 10:24:58 +02:00
Andrej730
c2320bb320
small add_constr_type_instance refactor
...
ifc_class removed as it was never used - ifc_class was always figured either from BIMModelProperties.relating_type_id or operator.relating_type_id
2024-04-16 10:10:50 +02:00
Andrej730
5a5e1e9892
disable chaching sound running the bim tests
...
to save someone's ears (probably mine 😁 ) from running 10 chaching sounds per second
2024-04-15 13:30:40 +02:00
Andrej730
4d3ed81971
Fixed test after b035129
2024-04-15 13:03:00 +02:00
Andrej730
5e019bbc42
Fixed test after c8c0c9a
...
Taking into account that now we have error messages if user will try to remove the last material layer which would make layer set invalid ifc.
FAILED test/bim/test_feature.py::test_remove_material_set_layer - AssertionError: Failed to run operator bpy.ops.bim.remove_layer(layer=IfcStore.get_file().by_id(93).MaterialLayers[...
2024-04-15 13:03:00 +02:00
Andrej730
3a0d09a6dc
Small fix related to 5c2ae98c0 and a bit more descriptive operator error
...
FAILED test/bim/test_feature.py::test_create_project__ifc2x3 - AssertionError: Failed to run operator bpy.ops.bim.create_project
2024-04-15 13:03:00 +02:00
Andrej730
f45e3b99ca
Fixed couple bugs in test_feature
...
1) Explicitly set empty ifc project not to load demo library - was still loading because it was using my default scene which caused errors.
2) typo in dimension check assertion message
2024-04-15 13:03:00 +02:00
Dion Moult
4f15ec1f67
Fix regressions after making aggregate based on selected objects.
2024-04-15 10:34:41 +02:00
Andrej730
0dfb34a730
Added test to cover 2629172ff
2024-04-15 10:34:41 +02:00
Dion Moult
b8431a8c33
Fix failing tests in preparation for release.
2024-04-15 09:56:38 +02:00
Andrej730
499edf960d
Test command to load blend file during test scenario for debugging
2024-04-15 09:56:36 +02:00
Dion Moult
2816d7f522
Fix bug where deleting the drawing object could lead to orphaned relationships
2023-03-19 18:15:09 +11:00
Dion Moult
558aff72a0
Psets and qtos are now only created when properties exist to prevent invalid IFCs.
2023-03-19 14:49:31 +11:00
Dion Moult
7383f44f8f
See #2645 . Update tests to use overridden built-ins.
2023-03-03 18:22:47 +11:00
Andrej730
1fca38625f
A last bit of cleaning up temp files after tests
2023-03-02 10:45:00 +05:00
Andrej730
fb3023bb79
Moved blenderbim tests temporary files to separate directory
...
Moved temporary test files to separate directory and added it to gitignore
Still have test.exp.cache.dat spawning from `test_feature`...
2023-03-01 18:46:13 +05:00
Andrej730
f5b6fdcb5b
Batting Annotation pattern
...
Added batting pattern to line annotations.
The way to use it is:
1) Add "Line" Annotation;
2) Change object type to "BATTING"
3) Add object property set "Pset_BBIM_Bating" (also added in this commit) to specify the batting thickness.
Currently there is no preview for batting in viewport.
Other changes:
- EPset_Annotation.ifc -> Psets_BBIM_Annotation.ifc (more general psets ifc library for the future use)
2023-02-27 19:18:39 +05:00
Andrej730
ff7d93e66c
Undo tests - proof of concept
...
Created some simple undo tests.
This "flip wall and ctrl-z" test actually is crashing blender if I do it manually - so I guess undo in background mode is still kind of different.
2023-02-22 20:24:43 +05:00
Dion Moult
5e744ff7d1
Add integration tests for basic wall modeling features
2023-02-22 20:38:02 +11:00
Andrej730
378a25bbaa
Added some .feature convenience debug fixtures
2023-02-20 19:57:05 +05:00
Andrej730
1dfabe2591
Fixed issue with float vectors assertion during tests
...
`sequence.feature` - Added `[:]` to make errors more readable values in errors (for example, (0.20000000298023224, 0.20000000298023224, 0.20000000298023224, 1.0) instead of `<bpy_float[4], Object.color>`
`test_feature.py` - fixed `FAILED test/bim/test_feature.py::test_animate_the_consumption_of_a_wall - AssertionError: Value is <bpy_float[4], Object.color>`
Test was failing because of float garbage in object.color (the comparison was (0.20000000298023224, 0.20000000298023224, 0.20000000298023224, 1.0) <> [0.2, 0.2, 0.2, 1] )
After that fix all tests now are passed 🥲
2023-02-20 19:53:16 +05:00
Dion Moult
77234706b0
Assigning a profile set auto creates profiles if none exist to prevent invalid data.
2023-02-05 15:29:54 +11:00
Dion Moult
207093fe99
Fix regression where changing assigned types didn't update the materials.
2023-02-04 22:12:28 +11:00
Dion Moult
a5adf0021f
Fix #2599 . Unassigning materials now also removes the Blender material.
2023-02-02 18:41:07 +11:00
Dion Moult
cbd9c898c3
Fix failing tests
2022-11-04 17:08:41 +11:00
Dion Moult
ffa3aae132
Fix UI bug where changing classification levels sometimes didn't display
2022-09-02 15:21:27 +10:00
Dion Moult
a800d1af7e
Fix pset template UI bug where changing to another prop didn't cancel editing older props. Also add support for blank or falsey enums (e.g. a real of 0.0).
2022-09-01 18:06:33 +10:00
Sigma Dimensions
699c8bf6b6
fix path windows test-bim
2022-08-29 12:51:18 +01:00
Carlos Villagrasa
4e5503002a
Construction Type Browser, polishing of 2nd iteration ( #2336 )
...
* Polish a bit the type browser UI
* Remove SELECT from type browser
* model and geometry module tests fixed
* Polishing of type authoring layout redesign
* Further polishing of type authoring layout
2022-08-10 21:23:13 +10:00
Carlos Villagrasa
1f637660d1
model and geometry module tests fixed
2022-08-02 18:13:31 +10:00
Dion Moult
ffe9ac6614
Run black
2022-08-01 19:45:36 +10:00
Carlos Villagrasa
cd58b994dd
Renaming AddConstrTypeInstance
2022-07-27 08:24:50 +02:00
Carlos Villagrasa
40854eb3d3
Renaming constr_type back to relating_type
2022-07-27 08:18:34 +02:00
Carlos Villagrasa
79453a6ae0
Renaming constr_class back to ifc_class
2022-07-27 08:11:52 +02:00
Carlos Villagrasa
9278e43d72
Merge branch 'v0.7.0' of https://github.com/IfcOpenShell/IfcOpenShell into IfcOpenShell-v0.7.0
2022-07-26 01:39:09 +02:00
Carlos Villagrasa
99c47069cd
Tests polished
2022-07-26 01:22:22 +02:00
Vukas Pajic
5f7630e527
added test for creating new ifcgroups
2022-07-25 11:13:15 +02:00
carlos
64752e52c9
Tuning feature tests
2022-07-23 00:39:17 +02:00
Carlos Villagrasa
a3942ee5e2
Merge branch 'IfcOpenShell:v0.7.0' into v0.7.0
2022-07-22 18:42:25 +02:00
Vukas Pajic
fcab5d445f
test features
2022-07-21 08:20:25 +02:00
carlos
7be93b5386
Add testing to construction type previews
2022-07-15 01:09:08 +02:00
Dion Moult
c478e5bf1b
#2094 . Deleting materials now also deletes Blender material if not used for a style
2022-03-21 12:04:51 +11:00
Dion Moult
c7428dd160
Fix bug where syncing an object removed from the collection tree breaks.
2022-01-30 14:44:21 +11:00
Dion Moult
1d47ad3cd4
New demo module to teach developers how to hack on the BlenderBIM Add-on.
2022-01-26 21:27:59 +11:00
Dion Moult
f529bc37ee
Fix bug where selecting type occurrences did not work
2021-11-29 20:25:51 +11:00
Gorgious
124ccf0404
(slightly) Optimise batch removing objects
2021-11-18 10:38:17 +01:00
Dion Moult
5ba155eb17
Fix #1857 . Fix bug where deleting from the outliner was not tracked.
2021-11-11 22:27:40 +11:00
Dion Moult
2ec3c4c06b
Swapping a Blender material for another is now auto synchronised.
2021-11-11 18:21:02 +11:00
Dion Moult
d5b92c0fea
Fix bug where style colours were not auto synchronised.
2021-11-11 17:31:23 +11:00