Commit Graph

497 Commits

Author SHA1 Message Date
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 e2b22369f1 tests - reduce precision to our usual Cad tool precision to fix some tests 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 9ae39f1edc fix duplicated function names in test_feature 2024-04-17 14:58:13 +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 aee264b587 black format 2024-04-17 14:54:42 +02:00
Andrej730 4490efc017 Fix ifc linking tests 2024-04-17 14:54:42 +02:00
Andrej730 5980a3984d fix demo library references after 7a7c89e 2024-04-17 14:42:55 +02:00
Andrej730 1819b6812e Fix issues with accessing invalid entities in bim.reassign_class #4371
bim.reassign_class wasn't considering that root.reassign_class will also reassign class for occurrences of the same type and was reaccessing invalid elements
2024-04-17 14:41:52 +02:00
Andrej730 b1811b7604 fix errors in tests
they were failing because import_reference_attributes were failing to get docs for unset schema version since ifc file wasn't attached to Blender
2024-04-17 14:41:52 +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 cdf866dc81 Fix test Model.get_manual_booleans after we added pset to store them 2024-04-16 11:28:59 +02:00
Andrej730 5d020f36d3 Fix #4267 and add tests
Crash was caused by unmark_manual_booleans accessing boolean element after they were deleted from IFC
2024-04-16 11:28:59 +02:00
Andrej730 fd48196bcb test for removing representation items 2024-04-16 11:28:59 +02:00
Andrej730 5de1dc115c tests for creating shape aspects and adding items 2024-04-16 11:28:59 +02:00
Andrej730 947ae02ab9 black format 2024-04-16 11:28:59 +02:00
Andrej730 8bbb4cb43b UI for changing styles for representation items
Example - https://imgur.com/a/SQh6rR2
2024-04-16 11:28:59 +02:00
Andrej730 0980075c88 ifcpixeltexture tests to reflect actual order of data 2024-04-16 11:17:07 +02:00
Andrej730 5cae82cded Fixed issue with flipped ifcblobtexture loaded to blender 2024-04-16 11:17:07 +02:00
Andrej730 8a1149f0de Fix a few uses of assigning/unassigning agregation after 165262933 2024-04-16 11:17:07 +02:00
Andrej730 994358c50d Support loading styles with IfcPixelTexture 2024-04-16 11:17:06 +02:00
Andrej730 baf00b5b48 Purge IfcWindow/DoorStyle/IfcTypeProduct #4137 2024-04-16 11:17:06 +02:00
Andrej730 50e568b706 prefix bim.assign/unassign_object to avoid operator override #4099
Co-Authored-By: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com>
2024-04-16 11:16:59 +02:00
Andrej730 8b69bf00f6 test for loading ifc with blob textures 2024-04-16 11:16:08 +02:00
Andrej730 f526819ef3 test for loading ifc style to blender material 2024-04-16 11:16:08 +02:00
Andrej730 e926547c92 test for tool.Blender.copy_node_graph #3876 2024-04-16 11:12:08 +02:00
Andrej730 83c9d70991 Fix reference images import after styles ui change 2024-04-16 11:12:08 +02:00
Andrej730 fa31e10a77 Styles UI - moved UI from shader graph N-panel to Styles UI #3912
Moved all shading style and textures parameters from shader-graph N-panel to general Styles UI. Shader graph now also update in real time on any prop changes in Styles UI.

Now there is practically no need to switch to shader graph to edit styles shaders - all parameters are available from the Styles UI. That also allows you to edit styles and see the results in viewport even if the edited style is not the one that's currently active.

small demo - https://imgur.com/a/i2suoZw
2024-04-16 11:12:08 +02:00
Dion Moult 401db55c55 Implement support for managing nest hosts and components. 2024-04-16 11:10:58 +02:00
Bruno Perdigão e25948bd03 added more tests 2024-04-16 11:10:58 +02:00
Bruno Perdigão b21b0751fa added test scenario for duplicating an aggregate 2024-04-16 11:10:58 +02:00
Andrej730 44c05ce71d Fix normals for generic parametric stairs #4020
Also made concrete stair normals defined more explicitly.
2024-04-16 11:10:57 +02:00
Andrej730 c3d24c76f2 Reference images attached to the drawings #3447
You can also save them as annotation types.
Example - https://imgur.com/a/6trT7SZ
2024-04-16 11:09:32 +02:00
Andrej730 e51d2daf64 Fixed issues applying arrays
because pset wasn't removed BBIM was recognizing those elements as parts of an array resulting in issues during deletion and duplication. This issue is a regression after ec4f0e5, the root problem was that `keep_objs` wasn't working with `sync_children`.

Since `keep_objs` was used only for applying array layers I've replaced it with `array_layers_to_apply` that works for both `sync_children` = True and False.

https://community.osarch.org/discussion/1831/duplicating-failed-for-array-items-after-apply-array
2024-04-16 11:09:32 +02:00
Andrej730 f99029d8ad moved load_texture_map to tool.Loader, added a test 2024-04-16 11:09:29 +02:00
Andrej730 4e71671412 test creating surface style without IFC entities 2024-04-16 11:09:28 +02:00
Andrej730 4fba7461c2 Fixed more overlooked context overrides... #3876 2024-04-16 11:05:26 +02:00
Andrej730 d56ec42905 minor fix - clean up after debug 2024-04-16 11:05:26 +02:00
Andrej730 bf943951c1 Tests for connecting mep elements and regenerating them
Also:
- fixed bug with bim.mep_connect_elements not considering actual blender blender object's position
- moved syncing ifc position with blender object position to tools (sync_object_ifc_position)
- fixed a bug in adding a bend that occured if either any of the start/end points of the start/end segments matched - in that case one of the segments end up not connected to the bend
2024-04-16 11:05:26 +02:00
Andrej730 0cc337fa88 fixed issue adding bend between segments located at the same point
also added some tests
2024-04-16 11:05:26 +02:00
Andrej730 fd69d91776 UI for assigning controls to flow elements #3981
Example - https://imgur.com/a/CZQIoHp
2024-04-16 11:05:25 +02:00
Andrej730 61e5533598 tool.System.add_ports tests 2024-04-16 11:05:25 +02:00