Dion Moult
a3b6a6ea39
Black geom/main.py
2024-06-15 23:50:37 +10:00
Dion Moult
cdce612566
Update all geom settings to new v0.8 syntax
2024-06-09 16:15:55 +10:00
Andrej730
cd2e33721e
Remove deprecated STRICT_TOLERANCE setting #4832
...
Mentioned in #4565 , it's now "set" by default
2024-06-08 00:33:17 +05:00
Dion Moult
6806eb0a05
Create blank ifc4 qto base quantities ruleset
2024-05-29 08:41:43 +10:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Andrej730
de690a385c
project.assign_declaration - support batching #4474
2024-05-03 16:28:10 +05:00
Andrej730
59cc9c0a16
material.assign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
cd11d2de27
aggregate.assign_object - support batching #4474
2024-04-08 17:49:48 +05:00
Andrej730
109787d869
spatial.assign_container - support batching #4474
2024-04-05 17:28:30 +05:00
Dion Moult
ecae9943e2
Add missing build dep
2024-04-05 21:12:27 +11:00
Dion Moult
dadcf03f55
See #4473 . Cull entourage library.
...
We haven't confirmed the legality of the other assets.
2024-03-29 15:33:47 +11:00
Dion Moult
6d4f47a2ca
New entourage library including people and cars
2024-03-27 20:23:44 +11:00
Dion Moult
efae8ebdcd
Add tree species to tree library
2024-03-04 17:51:48 +11:00
Dion Moult
48d6cc8a28
Fix #4383 . Demo library should use Model/Annotation/MODEL_VIEW for text annotations so that they can be used anywhere, not just on plans.
2024-03-03 16:12:18 +11:00
Dion Moult
13f26d9b70
Tweak generated tree parameters and add manual trees to landscape library thanks to SavyGust27
2024-03-02 22:59:12 +11:00
Andrej730
3fbd9d7cdf
IFC4 Landscape Library
...
Created IFC library with simple trees, shrubs and hedges - with both 2d and 3d representations. Example - https://i.imgur.com/pOjh1si.png
Now it's available along with the furniture library when creating new project - https://i.imgur.com/Ho0B5Gn.png
2024-01-24 16:38:52 +05: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
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
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
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
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
Andrej730
f5736a7144
convert setup_translations to blender addon for UI
2024-01-15 12:18:53 +05:00
Andrej730
6569d0031f
monkey patch blender's dump_addon_messages
...
The way blender gather messages to translate is:
1) disable the addon
2) parse all available strings
3) enable the addon
4) parse all strings available strings again and subtract the ones gathered at step 2.
But due Blender bug (https://projects.blender.org/blender/blender/issues/116579 ) not all addon parts unregistered at step 1, so some addon's strings left out and gathered at step 2 and then subtracted at step 4. At the end, we loose them and they will be missing from resulting translations files.
I've monkey patched dump_addon_messages so it now works a bit more safe:
0) It expects addon to be disabled and Blender restarted after
1) Gather all Blender strings
2) Enable addon
3) Gather all Blender strings again and subtract strings from step 1.
2024-01-09 16:54:58 +05:00
Andrej730
bfaa61e592
setup_translations - original dump_addon_messages
...
same as with dump_py_messages - this commit is needed to track monkey patch changes later on
2024-01-09 16:46:22 +05:00
Andrej730
1a09ce40e9
fix error converting translations to .po if .po files already exist
2024-01-09 16:00:21 +05:00
Andrej730
ff251b7a6a
monkey patch dump_py_messages to ignore blenderbim dependencies
2023-12-29 17:36:12 +05:00
Andrej730
dbce57ffc5
setup_translations - original dump_py_messages
...
as we're going to monkey patch it and this commit is needed to keep the history of changes
2023-12-29 17:36:12 +05:00
Andrej730
8ff9bcef32
update translations in current blender session
2023-12-29 17:13:43 +05:00
Andrej730
82b2006686
setup_translations.py - use just 1 directory to store .po files
...
and use temp directory to store .po files for ui_translate.export/import
2023-12-29 17:13:43 +05:00
Andrej730
925964ee2a
BBIM script to reload/export/import translation strings #889
2023-12-29 15:33:30 +05:00
Andrej730
a7712a923f
setup_pytest to find site-packages folder near sys.executable
...
Used to get errors running setup_pytest.py having python 3.10 installed on my pc (`sys_paths[-1]` was the system's python folder, not the blender's python).
2023-10-30 15:14:34 +05:00