Dion Moult
7a7fde0a2a
See #4247 . Loading models now skips excessively voided objects for performance.
2024-01-24 10:39:31 +11:00
Ryan Schultz
7992bd9902
Give user additional feedback when trying to duplicate an IFCproject and Drawing. Also deselects the object to prevent inadvertently moving it.
2024-01-23 08:04:12 -06:00
Dion Moult
3182fe9c15
Fix bug where merging by type when loading broke if a type didn't have a name
2024-01-23 19:45:31 +11:00
Dion Moult
e8858aeeb3
Fix bug where loading filtered IFC2X3 models didn't work.
2024-01-23 17:39:13 +11:00
Dion Moult
ec79d61095
Fix #2719 . Indicator whether or not IFC is dirty to help users know when to save.
2024-01-23 16:29:42 +11:00
Dion Moult
266236ee49
See #4241 . Only use shapely to repolygonise if IfcOpenShell returns unclosed paths. Hollow cuts typically are closed paths.
2024-01-23 16:06:54 +11:00
Dion Moult
192e4e43a4
Fix #4239 . Stop users from duplicating IfcProject.
2024-01-23 12:30:25 +11:00
Dion Moult
b22c92e951
Fix regression where you couldn't unlink an object that already had a broken element link, and bug where you couldn't unlink a spatial element or similar with its own collection.
2024-01-23 12:27:09 +11:00
Dion Moult
7634e71434
See #4239 . Ensure that all copy pasted objects are unlinked. Use duplicate if you want to copy.
2024-01-23 12:25:46 +11:00
Dion Moult
dda803df2e
See 0028fd3. Fix regression when duplicating objects without connections.
2024-01-23 09:05:40 +11:00
Dion Moult
40f332d674
Fix #3947 . Do slight 2mm offset to account for Z-fighting on 2D plan views and RCPs.
2024-01-20 21:53:34 +11:00
Dion Moult
e8a272dc97
Fix #4213 . Allow having separate windows to trigger drawing operators.
2024-01-20 15:06:47 +11:00
Dion Moult
25573cd0e0
Fix #4236 . Consolidate revert, reload IFC, and reload selected IFC operations.
...
Reload IFC incrementally (via diff) is moved to the debug panel since it is a dangerous advanced user command.
2024-01-20 13:15:59 +11:00
Dion Moult
5f4dfcf215
Fix #4231 . Bug where you couldn't add a door to an element assembly.
2024-01-19 22:47:53 +11:00
Andrej730
9a89555a53
bbim_translations.py - remove operator context from operator tooltips
...
noticed editing translations from ui that operator tooltip doesn't appear in ui if tooltips has `msgctxt "Operator"`
2024-01-19 16:31:34 +05:00
Andrej730
85a2a5ad12
fix build error
2024-01-19 15:11:59 +05:00
Andrej730
49c3d28a0b
Merge branch 'localization' into v0.7.0
2024-01-19 15:02:01 +05:00
Andrej730
a8f20b2c6b
drop bpy related translations.py<->.po stuff as we won't be using it
2024-01-19 15:00:41 +05:00
Andrej730
66fa1cedd9
run bbim_translations.py without bpy
2024-01-19 15:00:41 +05:00
Andrej730
eb971d3d73
save just a final dictionary to translations.py instead of tuples
...
We can do that since In our workflow we won't be converting translations.py to .po files, that way it will be much shorter as it's containing only translated strings and doesn't have strings sources.
2024-01-19 13:58:49 +05:00
Andrej730
a30a796c07
generate translations.py without bpy
2024-01-19 13:58:49 +05:00
Andrej730
9e46bacc12
gettext bug fix
2024-01-19 12:06:11 +05:00
Eduardo Schilling
2597827ab3
Roof slope as percentage property
2024-01-18 09:40:33 +11:00
Andrej730
2d279b7a7f
update blenderbim build to include translation data
2024-01-17 17:18:04 +05:00
Andrej730
e5fe039fd0
expose current blender locale in bbim translations ui
2024-01-17 17:18:04 +05:00
Andrej730
9e14829cc1
bbim messages parser to also parse gettext
2024-01-17 17:10:26 +05:00
Andrej730
e867602d9d
keep order of strings in .pot as they were parsed and store source filepaths
2024-01-17 17:10:26 +05:00
Andrej730
aecc3d56b8
switch to our own string parser instead of blender's
2024-01-17 17:10:26 +05:00
Andrej730
e3f5d3d2b7
rename BlenderBIM translation script/addon
2024-01-17 17:10:26 +05:00
Andrej730
98b56aea42
allow missing translations.py as not everyone will need translations for BBIM
2024-01-17 12:07:02 +05:00
Andrej730
ba6ba29da8
auto enable "Manage UI Translations" addon if it's not enabled
2024-01-16 17:34:24 +05:00
Andrej730
1112b102f7
add without-blender-way to generate translations module from po files
...
though it does require `bpy` module which is available only for python 3.10.
Actually, `bpy` module by itself is not necessary - we just need `bl_i18n_utils` that becomes available after `import `bpy`. So alternatively we can just download that module from Blender https://projects.blender.org/blender/blender/src/branch/main/scripts/modules/bl_i18n_utils
2024-01-16 17:06:43 +05:00
Andrej730
04b8172ea9
black format
2024-01-16 15:28:55 +05:00
Andrej730
f5f3edbc79
check if translation ui is loaded by current Blender session instead of current Blender file
...
as it's more reliable and thing could change after Blender restart
2024-01-16 15:27:43 +05:00
Andrej730
30029e3dc7
expose i18n path in translator UI
...
removed bim.open_po_directory operator as it's now available just from alt-clicking on the path browsing button
2024-01-16 15:24:03 +05:00
Andrej730
ed836f5b4a
Update bbim_setup_translations.py
2024-01-16 15:18:05 +05:00
Andrej730
a88b708442
fix issues with empty paths accepted as valid paths
2024-01-16 15:15:11 +05:00
Andrej730
764c3bbb85
separate developer/translator ui
2024-01-16 15:08:55 +05:00
Andrej730
382d3f1f9f
generate pot file too converting translations.py
2024-01-16 15:04:02 +05:00
Andrej730
3546f13593
change test addon name from localization_test
2024-01-16 11:42:34 +05:00
Dion Moult
eb888fd116
Fix #4223 . Basic lint error.
2024-01-16 10:50:43 +11:00
Dion Moult
2ef2f923d0
Fix #4219 . Update documentation for creating a new model.
2024-01-16 10:45:13 +11:00
Bruno Postle
75fab58831
IfcGit fixes suggested by ruff
2024-01-15 22:16:19 +00:00
Andrej730
ce26c6e19b
BBIM - upgrade to IFC4X3 on loading projects
...
Added "Upgrate to IFC4X3" button on loading new projects to migrate them to IFC4x3 as Ifc4x3 got approved now will be used more widely.
https://i.imgur.com/mHSIV7T.png
2024-01-15 17:39:49 +05:00
Dion Moult
3037795199
Fix #4139 . Bulk purge orphaned classes and move advanced operators to debug panel.
2024-01-15 23:16:42 +11:00
Andrej730
aadc77f6b6
minor fix for bim.create_all_shapes printed messages
2024-01-15 14:44:40 +05:00
Andrej730
35223d968c
semi-automatic setup for necessary directories
2024-01-15 14:43:23 +05:00
Andrej730
e106dc4502
register translations dict only if addon is already loaded
2024-01-15 13:39:27 +05:00
Andrej730
2995b73c2d
open .po directory operator
2024-01-15 13:39:27 +05:00
Andrej730
770bc6ea61
Operator to disable BBIM and restart Blender
...
as it's needed to reload the translations
Update bbim_setup_translations.py
Update bbim_setup_translations.py
2024-01-15 13:38:34 +05:00