Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
Not really important anymore, since those are not used by Blender, but
better be consistent.
|
|
Followup to https://developer.blender.org/D10288
Reviewed By: Blendify
Differential Revision: https://developer.blender.org/D10346
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This code was previously done in the add-on, but we'll need it for the
CLI tool as well, so now it is a utils generator instead.
|
|
Remove some top imports of bpy, only import it in a few specific
functions that only make sense when used whithin Blender anyway.
|
|
This involves re-implementing some of Blender-defined helpers in utils,
we keep debug code to ensure those are still matching on
behavior/results sides.
This will allow to get more i18n tools independent from blender
executable.
|
|
|
|
* Remove multi-processing in messages class update, was no giving much
speedup if any at all.
* Remove some debug prints.
* Make messages class pickleable.
* Filter better actual setting values from Settings class.
* Make settings pickleable.
All this will allow to use multi-processing in the i18n addon itself.
|
|
Because some OSs are still using old 8bits specific encodings... Angry
eye @windows...
|
|
Reported in T73504
|
|
|
|
|
|
Differential Revision: https://developer.blender.org/D3744
|
|
|
|
|
|
|
|
|
|
Differential Revision: https://developer.blender.org/D3668
|
|
|
|
|
|
D1328 by @yedpodtrzitko
|
|
|
|
|
|
|
|
|
|
(That commit, r60813, should never have been done to 2.69 branch, will revert it there, sorry :/ ).
|
|
msgid and msgstr, but also that they are of the same type and order. Sorry, should have done that from the beginning... :/
This should prevent any bug like [#37095] Timeline crash when chose any keying set then press keyframe-insert, to appear again.
|
|
The addons panel draw function calls addon_utils.modules() which in turn retrieves a list of fake modules from the script paths every time. This can become costly when network paths are included for
addons. Solution is to put the scanning process into a dedicated "refresh" function and disable it in frequently called draw and filter functions, i.e. in these cases the cached addons_fake_modules list
will be used instead.
Note that this may lead to invalid addon lists if script paths are changed (which is not working 100% without restart anyway according to Campbell). For this there is now a "Refresh" operator button in
the addons preferences. If necessary and feasible such forced refreshes can be added later too.
|
|
is fuzzy (but "fix" it anyway if asked so).
|
|
here, my tests with timeit showed it much slower than ratio(), but real-life says the contrary...
|
|
|
|
* Remove difflib's quick_ratio() call, from quick tests looks it is four times slower than ratio(), and yet it gives the same results...
* Moved code to find all po's in a dir into its own func (will be used by i18n addon tools too).
|
|
|
|
functionnal/tested, though).
Also workaround a nasty bug, where unregistered py classes remain listed in relevant __subclasses__() calls, which would lead to crash with python addons i18n tools (main translation was not affected, as messages extracting tools are executed in a brand new "factory startup" Blender ;) ).
|
|
|
|
|
|
|
|
|
|
from POT file!
|
|
Notes:
* Everything is still a bit raw and sometimes hackish.
* Not every feature implemented yet.
* A bunch of cleanup is still needed.
* Doc needs to be updated too!
|
|
|
|
from pot one (gain something like 20% in heavy update situations, and save a nice bunch of memory!).
|
|
wait for complete refactor I’m working on currently).
|