Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-02Cleanup: remove "<pep8 compliant>" from headersCampbell Barton
It can be assumed that all scripts comply with basic pep8 formatting regarding white-space, indentation etc. Also remove note in best practices page & update `tests/python/pep8.py`. If we want to exclude some scripts from make format, this can be done by adding them to `ignore_files` in: source/tools/utils_maintenance/autopep8_format_paths.py Or using `# nopep8` for to ignore for individual lines. Ref T98554
2022-05-09Tweak i18n messages extraction script to avoid unwanted messages.Bastien Montagne
Code would add a bit too often the identifier of an RNA class to translated messages, this is only needed if there is no valid label available for it.
2022-04-11Fix/workaround i18n script not finding some messages anymore.Bastien Montagne
For some reasons(c) some base classes (like `bpy.types.Modifier`) are not listed anymore by a call to `bpy.types.ID.__base__.__subclasses__()`, unless they are first accessed explicitely (e.g. by executing `bpy.types.Modifier` etc.).
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-11-17cleanup: fix typos in comments and docsluzpaz
Followup to https://developer.blender.org/D10288 Reviewed By: Blendify Differential Revision: https://developer.blender.org/D10346
2021-11-03I18n: Fix several issues with UI messages extraction script.Bastien Montagne
* Fix systematic skipping of labels when they are the same as the identifier (Some cases are valid, like `RGB` or `HSV` e.g.). * Add instead heuristics checks to skip non-UI properties (non-capitalized, or same name as identifier and Operator properties, mainly). * Skip `bl_icon` and `icon` properties. * Properly search for properties in all parent classes (some cases with e.g. `Panel` would break due to intermediary utils classes, leading to those internal UI properties not being skipped as expected). Related to T43295.
2021-10-24Cleanup: line length in Python scriptsCampbell Barton
2021-10-04I18n tools: Fix issue when extracting messages on release builds.Bastien Montagne
This was also affecting prototype of buildbot-driven UI messages extraction...
2021-03-06Cleanup: unused importsCampbell Barton
2021-02-22i18n messages extraction script: fix handling of C unicode-escapes.Bastien Montagne
rB1f5647c07d15 introduced for the first time a unicode escape in strings to be translated, directly extracted from C-code itself. This revealed that this case was not properly handled by current code, for now we work around using `raw_unicode_escape` encoding/decoding of python.
2021-02-22Fix i18n messages extraction tool after update to support py 3.10.Bastien Montagne
The new defferred approach broke existing way to access items from struct definition... See T85872.
2020-12-21Fix part of T84004: Some 2.92 alpha UI strings can't be translated.Bastien Montagne
Adding 'new' (?) `heading` parameter of some UILayout functions...
2020-10-02Cleanup: pep8 (indentation, spacing, long lines)Campbell Barton
2020-09-13Fix T80589: Translations in python scripts are missing.Bastien Montagne
Python 3.8 changed handling of constant values in its AST tool. This code should work on both officialy supported 3.7, and newer 3.8, for now.
2020-03-20Fix T74959: Need to be explicit about UTF8 encoding in py.Bastien Montagne
Because some OSs are still using old 8bits specific encodings... Angry eye @windows...
2020-02-17Fix many typos and other issues in UI messages.Bastien Montagne
2020-01-30Cleanup: resolve static analyzer warnings in bl_i18n_utilsCampbell Barton
Reported in T73504
2019-09-09I18n: dirty workaround for PITA ghost classes remaining after unregister.Bastien Montagne
Spent again a whole day trying to understand what happens here, with no luck. For some reasons, OperatorProperties children of unregistered operator classes remain accessible, with their `bl_rna` member, although that one is 100% invalid (freed memory, crashes with ASAN builds). Funny thing is, I cannot reproduce that situation when disabling the add-on from the py console of a Blender-with-UI. Note: issue revealed by X3D add-on, which is still enabled in factory settings, while not being officially supported any more, this has to be fixed in a separate commit.
2019-08-01I18n messages extraction: do not report multi-lines messages anymore.Bastien Montagne
Those are now supported for tooltips.
2019-08-01Cleanup a bit i18n message extraction code.Bastien Montagne
2019-03-31I18n messages extraction: add 'generic' handling of Tools.Bastien Montagne
2019-03-01Cleanup: use preferences prefix for Python operatorsCampbell Barton
2018-12-24Fix and workaround for i18n messages extraction code.Bastien Montagne
2018-11-20Cleanup: move keymap hierarchy into own fileCampbell Barton
2018-10-03Keymap: expose tool keymaps in the preferencesCampbell Barton
Currently some modes share tool keymaps, we might want to disable this since it's confusing editing one thing in multiple places. However this should be resolved in the tool definitions.
2018-09-13Merge branch 'master' into blender2.8Campbell Barton
2018-09-13PyAPI: use brief description for operator reprCampbell Barton
Only include description in docstring. Also avoid using op_get_rna.
2018-09-03Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/collision.c
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-07-07Merge branch 'master' into blender2.8Campbell Barton
2018-07-07Cleanup: pep8Campbell Barton
2018-07-06UI/Python: rename Lamps to Lights, to follow more standard terminology.Brecht Van Lommel
Internally it's still mostly named lamps, though some modules like Cycles were already calling them lights.
2017-10-04Fix i18n messages extraction script, and a few more UI messages...Bastien Montagne
2016-08-26Fix T49158: Untranslatable elements in UI.Bastien Montagne
We cannot skip 'collections clesse' when generating i18n messages from RNA, some of them are visible and UI...
2016-08-23Fix T49150: make new 'operator categories' in search menu i18n-aware.Bastien Montagne
2016-02-09Fix T47371 - add access to 'static' enum items.Bastien Montagne
Some dynamic enums, which do not need a valid context pointer, have their 'itemf' callback always called. This is annoying for introspection tools (like the ones generating translations, or API documentation), because it means they never have access to all possible options (enum items). So now, there is also an `enum_items_static` accessor to get only statically-defined enum items. Note: only i18n tools take advantage of this currently, others are still to be updated. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D1782
2016-01-14Fix broken i18n messages extracting script with new py code.Bastien Montagne
Some py devs are way too smart for our own good... :P
2015-09-28i18n extraction tools: keep even better order of entries in PO files.Bastien Montagne
Important to avoid too much changes, especially on the git repo (we are still getting way too much changes there currently...).
2015-06-03I18n extract: better handling of commandline args.Bastien Montagne
2015-05-29Fix wrong 'check context' handling in addon i18n messages generator.Bastien Montagne
Reported (with patch) by yedpodtrzitko (yed podtrzitko), thanks a bunch! Differential Revision: https://developer.blender.org/D1327
2015-05-25I18n message extractor script: py code: do not consider strings inside ↵Bastien Montagne
'Compare' AST nodes. Otherwise, we'd get 'MOVIE' from `text="Build Proxy / Timecode" if clip.source == 'MOVIE' else "Build Proxy")`...
2015-02-13cleanupCampbell Barton
2015-01-29cleanup: pep8Campbell Barton
also remove empty class parenthesis
2014-11-14UI: Rename Addons -> Add-onsCampbell Barton
D812 by @thefallenweeble internally variable names & paths remain the same, this is for labels & tips only.
2014-09-17Cleanup: pep8Campbell Barton
2014-01-24Add support for new "bl_category" member (new panels "tabs" system).Bastien Montagne
2013-11-26i18n module cleanup: remove hack used during svn -> git transition phase!Bastien Montagne
2013-11-04Update i18n tools for new build_hash...Bastien Montagne
2013-08-18More "relpath" try/except protection...Bastien Montagne
2013-04-12More fixes for addon i18n messages management.Bastien Montagne