Andrej730
103e8a545b
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[...
2023-06-21 14:19:25 +05:00
Andrej730
6825d26700
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
2023-06-21 09:58:41 +05:00
Andrej730
5c2ae98c09
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
2023-06-20 19:18:39 +05:00
Dion Moult
7cd7ad1281
Fix regressions after making aggregate based on selected objects.
2023-06-01 16:59:53 +10:00
Andrej730
7d5beb6c80
Added test to cover 2629172ff
2023-06-01 10:01:13 +05:00
Dion Moult
1fb6dac6fb
Fix failing tests in preparation for release.
2023-05-06 11:05:13 +10:00
Andrej730
63b201fd95
Test command to load blend file during test scenario for debugging
2023-05-01 15:35:27 +05: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
Dion Moult
28e5af853d
Fix bug where an added default material was not linked and auto synced.
2021-11-10 18:01:10 +11:00
Dion Moult
7fbf317ad2
Fix representation where removing a representation left objects with an empty mesh. Now a proper empty is used.
2021-11-08 21:12:38 +11:00
Dion Moult
7ccb6ee110
Resolve #1836 . Scaling in Blender is now auto resolved when representations are updated.
2021-11-08 21:12:38 +11:00
Dion Moult
8e215382f7
Fix bug where assigning a type did not use existing representation data in the scene if the context had changed
2021-11-06 20:56:53 +11:00
Dion Moult
a4c054ef62
Objects now sync spatial hierarchy more robustly on export, and clean the collection tree in case the user messed it up.
2021-10-29 17:43:38 +11:00