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-08-30Cleanup: formatCampbell Barton
2022-08-29I18n: make add-ons' info translatableDamien Picard
The info provided by add-ons is very valuable to users, yet it wasn’t translatable yet. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15747
2022-08-29Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-29I18n: Better wording for the skipped languages in language menu file.Bastien Montagne
2022-08-29Merge branch 'blender-v3.3-release'Aaron Carlisle
2022-08-29Update RNA to User manual mappingsAaron Carlisle
2022-08-27UV: bpy_extras.mesh_utils.mesh_linked_uv_islands raises error in edit modeChris Blackbourn
Maniphest Tasks: T86484 Differential Revision: https://developer.blender.org/D15778
2022-08-25Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-25Update liboverride operators to manual mapping.Bastien Montagne
2022-08-25PyAPI: return faces instead of indices from bmesh_linked_uv_islandsCampbell Barton
Return faces instead of face indices from bmesh_linked_uv_islands since BMesh indices aren't reliable when geometry is added/removed, where the faces will still be valid.
2022-08-25Cleanup: replace dict with set for bmesh_utils.bmesh_linked_uv_islandsCampbell Barton
Also correct doc-string syntax.
2022-08-25Fix T78406: create uv randomize islands operatorChris Blackbourn
Implement a new operator to randomize the scale, rotation and offset of selected UV islands.
2022-08-24Cleanup: formatCampbell Barton
2022-08-23I18n: make workspaces translatableDamien Picard
This makes workspaces more translatable: - New Workspace menu - header - preset menus - preset entries - workspace names upon factory file template load - new workspace name upon workspace addition To properly translate those names, an extraction function for workspace names from app templates was added as well. (Do not do anything when loading a user-saved file!) Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15727
2022-08-16Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-16LibOverride: Tweaks to new menus in Outliner.Bastien Montagne
Also add new outliner liboverride operators mapping to the manual, though this is useless currently as this feature is not working in many part of the UI, including the Outliner contextual menu.
2022-08-12Cleanup: group translation importsCampbell Barton
2022-08-10Merge branch 'blender-v3.3-release'Aaron Carlisle
2022-08-10Update RNA to User manual mappingsAaron Carlisle
2022-08-09I18n: make more parts of the UI translatableDamien Picard
- "Name collisions" label in mesh properties - "Threshold" labels in Vertex Weight Edit modifier - "Particle System" label in Particle Instance modifier - Slot number in the Shader Editor - Status bar keymap items during modal operations: add TIP_() macro to status bar interface template - On dumping messages, sort preset files so their messages are stable between runs Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15607
2022-08-09I18n: add extraction of modal event names.Bastien Montagne
Alternative fix to the one proposed in D15607. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15643
2022-08-09I18n: remove Window class from message extraction blacklistDamien Picard
Messages from the bpy.types.Window class were blacklisted in the message extraction script. This change allows a few new messages to be translated, including at least two which show up in the UI. There are only 12 new messages in the .po files, so even if some never need to be translated, that's not too many. Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15628
2022-08-09I18n: make more parts of the UI translatableDamien Picard
- "Name collisions" label in mesh properties - "Threshold" labels in Vertex Weight Edit modifier - "Particle System" label in Particle Instance modifier - Slot number in the Shader Editor - Status bar keymap items during modal operations: add TIP_() macro to status bar interface template - On dumping messages, sort preset files so their messages are stable between runs Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15607
2022-08-09I18n: add extraction of modal event names.Bastien Montagne
Alternative fix to the one proposed in D15607. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15643
2022-08-09I18n: remove Window class from message extraction blacklistDamien Picard
Messages from the bpy.types.Window class were blacklisted in the message extraction script. This change allows a few new messages to be translated, including at least two which show up in the UI. There are only 12 new messages in the .po files, so even if some never need to be translated, that's not too many. Ref. T43295 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15628
2022-08-03Cleanup: make formatChris Blackbourn
2022-08-03UI: Improve circle drawing of cursor for uv sculptingChris Blackbourn
Calculate segments based on radius. Differential Revision: https://developer.blender.org/D15591
2022-08-01tweaks & fixes to UI messages.Bastien Montagne
2022-08-01I18n: make presets translatableDamien Picard
Presets are used all over the Blender UI, but were so far untranslatable. This adds the translation code as well as a new `dump_preset_messages()` function in the message extraction. This goes over all bundled preset file names and extracts them. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15570
2022-07-23Update RNA to User manual mappingsAaron Carlisle
2022-07-20I18n: fixes to add-on message extractionDamien Picard
This commit fixes several issues in add-ons UI messages extraction code: - In multi-file modules, the script would crash because it tried to write to the dir instead of a `translations.py` file; - The add-on message extraction works by enabling the add-on, getting all messages; disabling the add-on, getting all messages; then comparing the two message sets. But often a bug happens where a class gets a description from somewhere else in memory. I couldn’t debug that, so a workaround is to check that the message isn’t a corrupted one before removing it; - `printf()` doesn't exist in Python and would crash the script; - `self.src[self.settings.PARSER_PY_ID]` can be replaced by `self.py_file` in class `I18n`, since a property exists to do that; - At one point a generator was printed instead of its values, so let's unpack the generator to get the values. Maybe the print could be deleted entirely; - Use SPDX license identifier instead of GPL license block, to be more in line with other scripts from the codebase. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15474
2022-07-18Context: implement indexing for list properties in path_resolve.Alexander Gavrilov
The real RNA path_resolve method supports indexing lists, but the python version on the Context object does not. This patch adds the missing feature for completeness. Differential Revision: https://developer.blender.org/D15413
2022-07-15I18n: Add suport for labels from modifiers' subpanels.Bastien Montagne
Was a bit oif a struggle since those functions take a first string which is not our label, but should work fine now. Reported/detected as part of D15418.
2022-07-15blend_render_info: add check for negative BHead length (corrupt file)Campbell Barton
Without this check, corrupt files would raise a Python exception, now early exit with a useful error.
2022-07-14I18n: Fix regex for messages from `BKE_modifier_set_error`.Bastien Montagne
Signature of this function changed at some point, regex to extract messages from it was no longer working. Reported/detected as part of D15418.
2022-07-11Fix/Cleanup UI messages.Bastien Montagne
2022-06-19Update RNA Manual ReferencesAaron Carlisle
2022-06-14blend_render_info: minor improvements to file parsingCampbell Barton
- Stop once `ENDB` is reached, as files could include additional data. - Prevent the possibility of an infinite loop from malformed BHEAD blocks that could seek backwards in the file.
2022-06-13Cleanup: fix various typosBrecht Van Lommel
Found via codespell -q 3 -S ./intern,./extern -L ans,ba,bording,datas,eiter,fiter,hist,inout,lod,ot,parm,parms,pixelx,pres,te Contributed by luzpaz. Differential Revision: https://developer.blender.org/D15155
2022-06-07Fix T98527 : corrected label for Korean language in Blender preferencesJoseph Faulkner
Patch changes label from '한국 언어' to '한국어' Reviewed By: persun, PratikPB2123, mont29 Maniphest Tasks: T98527 Differential Revision: https://developer.blender.org/D15120
2022-06-07blend_render_info: Zstd support, skip redundant file reading & cleanupCampbell Barton
- Use a context manager to handle file handlers (closing both in the case of compressed files). - Seek past BHead data instead of continually reading (checking for 'REND'). - Write errors to the stderr (so callers can differentiate it from the stdout). - Use `surrogateescape` in the unlikely event of encoding errors so the result is always a string (possible with files pre 2.4x). - Remove '.blend' extension check as it excludes `.blend1` files (we can assume the caller is passing in blend files). - Define `__all__` to make it clear only one function is intended to be used.
2022-06-03Fix: Curves sculpt mode keymaps missing in preferencesHans Goudey
These changes make the curves sculpt mode keymap consistent with other modes. They now show up in the keymap, for potential editing of tool shortcuts, etc. I don't fully understand this system, but at least these changes should make it consistent. Differential Revision: https://developer.blender.org/D15112
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-31PyDoc: replace in-lined enum references with links where possibleCampbell Barton
Avoid in-lining large enums such as icons and event types, linking to them instead. This mitigates T76453, where long enums took a lot of space in the docs, this was a problem with `UILayout` where each icon argument would list all icons. [0] worked around the issue using CSS to scroll the list. However this has the draw-back where some items are clipped in a way that's not obvious, see: T87008. The reason this isn't a complete solution is that Python defined enums aren't written into their own pages which can be linked to, although currently there are no large Python enums included in the API docs. All in-lined enums are now under 20 items. [0]: 1e8f2665916c049748a3985a2fce736701925095
2022-05-23PyDoc: quiet output and minor cleanupCampbell Barton
Suppress printing unnecessary output when generating docs.
2022-05-23Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-23Fix float representation for Python API docsCampbell Barton
float_as_string(1000000) resulted in 1e+06.0 which isn't valid notation.
2022-05-20Include __init__.py in bl_console_utilsCampbell Barton
Failure to include this file caused script_load_modules test to fail.
2022-05-20Cleanup: move 'console' module to 'bl_console_utils.autocomplete'Campbell Barton
The name 'console' for a module was too generic, move into a sub-package of bl_console_utils, so other console utilities can be added without creating new top-level modules.
2022-05-19Cleanup: format, reduce line length & strip trailing spaceCampbell Barton