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-11-08Workaround crash generating Python API documentationCampbell Barton
Avoid accessing freed memory from dynamically allocated EnumPropertyItem arrays. Rely on the memory being held by the iterator which isn't the case when it was converted to a tuple.
2022-11-03Update RNA to User manual mappingsAaron Carlisle
2022-10-21Fix T101244: Empty point list in shader batch creation cause errorGermano Cavalcante
Allow empty VBOs in Python GPUBatch creation.
2022-10-21SystemInfo: Add active GPU backend.Jeroen Bakker
For debugging it is useful to known the active GPU backend. Although it could be determined from looking at the extensions, this is easier to understand when not activly working in this area.
2022-10-10Fix typos & co in UI messages.Bastien Montagne
2022-10-10UI: show the windowing environment in the "About" splashCampbell Barton
Show the windowing environment on non MS-Windows/Apple systems, since X11/WAYLAND are selected startup there was no convenient way for users to know which back-end was being used. Include the windowing environment in the About splash & system-info.txt since it will be useful for handling bug reports. This commit adds a private API call not intended for general use as I would like to be able to remove this later and it's only needed in the specific case of testing if Blender is using WAYLAND or X11 (which maybe be used via XWayland). Python scripts can already inspect the system to check which windowing environment used, the API call is mainly useful for troubleshooting.
2022-10-06I18n: ignore user-installed add-ons when extracting bl_infoDamien Picard
Since add-on info was made translatable in D15747, user-installed add-ons could also get their info extracted. This led to having different messages depending on the environment of the Blender doing the I18n messages update. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15963
2022-10-06Fix exception in bpy_extras.object_utils.object_data_add(..)Campbell Barton
Adding object-data that doesn't support edit-mode would raise an exception when the "Enter Edit Mode" preferences was enabled. Other changes: - Don't attempt to enter edit-mode for library-data. - Support entering edit-mode for grease-pencil objects. Alternate fix for the issue raised by D15999.
2022-10-05I18n: improve unit extraction regexDamien Picard
There were two issues with the unit extraction regex: - it didn't take the inches, feet, arcminutes and arcseconds symbols into accounts, which aren’t letters but ' and "; - some units have more than one B_UNIT_DEF_* flag. This allows extracting feet, inches, square millimeters, cubic millimeters, arcminutes, and arcseconds. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D16144
2022-09-29Fix bpy.utils.script_paths() ignoring environment variablesCampbell Barton
When check_all=True was passed, - `os.path.join(bpy.utils.resource_path('USER'), "scripts")` was used instead of BLENDER_USER_SCRIPTS. - `os.path.join(bpy.utils.resource_path('SYSTEM'), "scripts")` was used instead of BLENDER_SYSTEM_SCRIPTS. Other minor changes: - Simplify collecting paths. - Don't add user-directories multiple times when check_all=True. - Normalize paths before before checking duplicates to reduce the change the same path is added multiple times. Found these issues while investigating T101389.
2022-09-26Cleanup: format, ensure trailing newlinesCampbell Barton
2022-09-26System info: Added GPU device type and feature support.Jeroen Bakker
Adds more information to System info to help triaging/debugging.
2022-09-26Console: Add gpu python module to list of internal modules.Jeroen Bakker
The python GPU module was not mentioned in the list of internal modules. Adding the GPU module to the list allows curious users to find it.
2022-09-21Fix module search path for Python on initializationCampbell Barton
Initializing the sys.path on startup attempted to add subdirectories of {BLENDER_SYSTEM_SCRIPTS}: - ./modules/modules - ./modules/startup As the directories aren't expected to exist there is no need to add them. Also improved comments for path searching logic.
2022-09-21Fix T101138: remove console spam when hovering over toolbar in uv editorChris Blackbourn
Reviewers: Campbell Barton <ideasman42>, Ryan Inch <Imaginer> Differential Revision: https://developer.blender.org/D16015
2022-09-19PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methodsGermano Cavalcante
This simplifies python code. When we call a method like shader.uniform_float("color", (1,1,1,1)), we expect the shader's uniform to be updated regardless of whether the shader is bound or not. And `batch.draw()` already calls `GPU_shader_bind` inside. Differential Revision: https://developer.blender.org/D15929
2022-09-19Cleanup: prefer 'arg' over 'params' for sphinx documentationCampbell Barton
While both are supported, 'arg' is in more common use so prefer it.
2022-09-14Fix T100977: Wrong native Ukrainian language name in UI.Bastien Montagne
2022-09-14Cleanup: remove redundant braces from assert & raiseCampbell Barton
autopep8 v1.7 added a space after assert & raise, remove the braces as they aren't needed.
2022-09-13Update RNA to User manual mappingsAaron Carlisle
2022-09-12UI: Cleanup/Fixes of some UI messages.Bastien Montagne
2022-09-05Cleanup: make formatBrecht Van Lommel
2022-09-05I18n: extract keymap preferencesDamien Picard
The per-keymap user preferences messages were not extracted. This goes through the keymap preferences RNA, as well as Python files for UI. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15871
2022-09-05I18n: translate untitled file namesDamien Picard
When saving, the default file name is "untitled" regardless of selected language. This can be translated, like many graphical applications do. This applies to: - blend file - alembic file - collada file - obj file - usd file - rendered image - grease pencil export - subtitles export - other Python exports through ExportHelper Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15868
2022-09-02PyGPU: only use 3D shaders and rename string enumsGermano Cavalcante
Since rB6269d66da, creating formats no longer depends solely on the shader, but now depends on the dimensions used to fill the VBOs. This allows 3D shaders to work flawlessly when assigned dimensions are 2D. So there's no real benefit to us having shaders that are limited to 2D use anymore. This limitation makes it difficult to implement other builtin shaders as they indirectly require a 2D version. So this commit removes the 2D versions of the builtin sahders used in Python , renames the string enums but keeps the old enums working for backward compatibility. (This brings parts of the changes reviewed in D15836).
2022-09-01PyGPU: GPUShader: implementation of 'attrs_info_get' methodGermano Cavalcante
With the new `attrs_info_get` method, we can get information about the attributes used in a `GPUShader` and thus have more freedom in the automatic creation of `GPUVertFormat`s Reviewed By: fclem, campbellbarton Differential Revision: https://developer.blender.org/D15764
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