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-04-20Cleanup: re-run autopep8 with E401 enabledCampbell Barton
Put imports on their own line which was almost always the case already.
2022-04-20Cleanup: run autopep8 on release/scripts/presetsCampbell Barton
2022-04-20Cleanup: use autopep8 on release/ltsCampbell Barton
2022-04-20Cleanup: run autopep8 on release/scripts/freestyleCampbell Barton
2022-04-20Cleanup: run autopep8 on intern/cycles/Campbell Barton
Disable autopep8 for the block that yields passes in list_render_passes, for better readability.
2022-04-20Cleanup: run autopep8 with max-line-length=120 (missed a file)Campbell Barton
2022-04-20Cleanup: run autopep8 with max-line-length=120Campbell Barton
2022-04-20Cleanup: use autopep8 for bl_i18n_utils.settingsCampbell Barton
Disable autopep8 for some regex blocks that use indentation to signify regex grouping.
2022-04-20Cleanup: run autopep8 on release/scripts/modules/Campbell Barton
2022-04-20Cleanup: run autopep8 on release/scripts/templates_pyCampbell Barton
2022-04-20Cleanup: run autopep8 on doc/Campbell Barton
2022-04-20Cleanup: run autopep8 on build_files/Campbell Barton
Replace multiple hashes with over-lines for make_source_archive.py.
2022-04-20PyAPI: improve deprecation warning for bpy.ops context overrideCampbell Barton
- Increase the stack level so the reported line number references script authors code (not Blender's wrapper function). - Include the operator name and poll/call usage in the warning.
2022-04-20Fix crash passing no arguments to Context.temp_overrideCampbell Barton
2022-04-20Docs: update examples to use Context.temp_overrideCampbell Barton
2022-04-20PyAPI: temporary context override supportCampbell Barton
Support a way to temporarily override the context from Python. - Added method `Context.temp_override` context manager. - Special support for windowing variables "window", "area" and "region", other context members such as "active_object". - Nesting context overrides is supported. - Previous windowing members are restored when the context exists unless they have been removed. - Overriding context members by passing a dictionary into operators in `bpy.ops` has been deprecated and warns when used. This allows the window in a newly loaded file to be used, see: T92464 Reviewed by: mont29 Ref D13126
2022-04-20PyAPI: utility functions for parsing typed RNA argumentsCampbell Barton
These functions can be used with PyArg_ParseTupleAndKeywords (and related functions) to take typed RNA arguments without having to extract and type-check them separately. No functional changes, extracted from D13126.
2022-04-20Cleanup: spelling in commentsCampbell Barton
2022-04-20Cleanup: clang-formatCampbell Barton
2022-04-20Cleanup: unused argument warningCampbell Barton
2022-04-20UI: Fix typo in Apply Parent Inverse tooltipNate Rupsis
There's a small typo in the tool tip for applying the Parent Inverse. This patch fixes that typo old: {F13010751} new: {F13010749} Reviewed By: Blendify Maniphest Tasks: T97437 Differential Revision: https://developer.blender.org/D14693
2022-04-20Mesh: Avoid unnecessary normal calculation and dirty tagsHans Goudey
This is mostly a cleanup to avoid hardcoding the eager calculation of normals it isn't necessary, by reducing calls to `BKE_mesh_calc_normals` and by removing calls to `BKE_mesh_normals_tag_dirty` when the mesh is newly created and already has dirty normals anyway. This reduces boilerplate code and makes the "dirty by default" state more clear. Any regressions from this commit should be easy to fix, though the lazy calculation is solid enough that none are expected.
2022-04-20Cleanup: Don't recalculate normals in versioning codeHans Goudey
Normals are not read from files anymore, calculating them in versioning is unnecessary and wasteful.
2022-04-19Fix: Incorrect info message in set material nodeHans Goudey
The node does have support for curves since c4f7f59c659f7d986e.
2022-04-19Fix: Assert when sculpting empty curvesHans Goudey
2022-04-19GPU: Fix Adresse Sanitizer errorsClément Foucault
2022-04-19Cleanup: GPUMaterial: Remove GPU_material_is_volume_shaderClément Foucault
2022-04-19Cycles: add support for volume motion blurKévin Dietrich
This adds support for rendering motion blur for volumes, using their velocity field. This works for fluid simulations and imported VDB volumes. For the latter, the name of the velocity field can be set per volume object, with automatic detection of velocity fields that are split into 3 scalar grids. A new parameter is also added to scale velocity for more artistic control. Like for Alembic and USD caches, a parameter to set the unit of time in which the velocity vectors are expressed is also added. For Blender gas simulations, the velocity unit should always be in seconds, so this is only exposed for volume objects which may come from external OpenVDB files. These parameters are available under the `Render` panels for the fluid domain and the volume object data properties respectively. Credits: kernel advection code from Tangent Animation's Blackbird based on earlier work by Geraldine Chua Differential Revision: https://developer.blender.org/D14629
2022-04-19Cleanup: remove unused codeJacques Lucke
2022-04-19Fix T97338: Correct reference count for COM handling and removal of gotosRobert Guetzkow
The fix ensures that the reference count for `IShellItem *pSI` is decremented, preventing a memory leak. For `IFileOperation *pfo` the decrement of the reference count is only attempted when `CoCreateInstance` is successful. Additionally, the gotos have been replaced with nested if/else statements. Reviewed By: brecht Differential Revision: https://developer.blender.org/D14681
2022-04-19PyGPU: remove outdated function 'code_from_builtin'Germano Cavalcante
Since shader sources are now parsed on demand via `GPUShaderCreateInfo`, sources are not available to be read via `GPU_shader_get_builtin_shader_code`. Currently this results in a crash as the code tries to read `NULL` pointers. `GPU_shader_get_builtin_shader_code` was created with the intention of informing the user how a builtin shader works, thus "replacing" detailed documentation. Therefore this function doesn't really have a practical use in an addon. So, instead of updating the function (which would require several changes to the gpu module), remove it and improve the documentation. Release Notes: https://wiki.blender.org/wiki/Reference/Release_Notes/3.2/Python_API#Breaking_Changes Reviewed By: fclem Differential Revision: https://developer.blender.org/D14678
2022-04-19improve hover tip for 'Lock Object Modes' propertyGaia Clary
2022-04-19Fix wrong logic in comparison code of RNA collection proerties.Bastien Montagne
Noted as part of T94775 investigation by Wayde Moss (@GuiltyGhost), thanks! NOTE: this mistake probably did not have any pratical impact in current code, at least for overrides.
2022-04-19DRW: Volume: Fix warning about unused variableClément Foucault
2022-04-19Fix: Uninitialized paint brush when using byte textures.Jeroen Bakker
This is a fix for the 3d texturing brush.
2022-04-19EEVEE: Fix compilation caused by missing fileClément Foucault
2022-04-19GPU: Replace `GPUMaterialVolumeGrid` by `GPUMaterialAttribute`Clément Foucault
This is to make the codegen and shading nodes object type agnostic. This is essential for flexibility of the engine to use the nodetree as it see fits. The essential volume attributes struct properties are moved to the `GPUMaterialAttribute` which see its final input name set on creation. The binding process is centralized into `draw_volume.cc` to avoid duplicating the code between multiple engines. It mimics the hair attributes process. Volume object grid transforms and other per object uniforms are packed into one UBO per object. The grid transform is now based on object which simplify the matrix preparations. This also gets rid of the double transforms and use object info orco factors for volume objects. Tagging @brecht because he did the initial implementation of Volume Grids.
2022-04-19Material: Add name to default shadersClément Foucault
Improve debugging experience.
2022-04-19Workbench: Volume: Fix errors about unboud textureClément Foucault
2022-04-19DRW: Centralize smoke domain texture managementClément Foucault
This code was duplicated in multiple engines. Now it is the draw manager responsability to manage the throwaway fluid textures.
2022-04-19Cleanup: Remove unused function in Cycles queueSergey Sharybin
Noticed while looking into oneAPI patch. Seems to be unused, without clear indication why/when it might be needed. Removing the function simplifies adding the new backend. Differential Revision: https://developer.blender.org/D14652
2022-04-19Cleanup: run autopep8 on tests/Campbell Barton
2022-04-19Cleanup: run autopep8 on release/scripts/startup/Campbell Barton
2022-04-19Refactor: Move mesh face dot tag out of MVertHans Goudey
Continuing the refactors described in T93602, this commit moves the face dot tag set by the subdivision surface modifier out of `MVert` to `MeshRuntime`. This clarifies its status as runtime data and allows further refactoring of mesh positions in the future. Before, `BKE_modifiers_uses_subsurf_facedots` was used to check whether subsurf face dots should be drawn, but now we can just check if the tags exist on the mesh. Modifiers that create new new geometry or modify topology will already remove the array by clearing mesh runtime data. Differential Revision: https://developer.blender.org/D14680
2022-04-19Fix missing C/Python methods in API docsCampbell Barton
The following methods weren't included in API docs. - BlendDataLibraries.load - BlendDataLibraries.write - Text.region_as_string - Text.region_from_string
2022-04-19PyDoc: quiet warnings for duplicate members bpy.contextCampbell Barton
2022-04-19PyDoc: remove multiple `children` properties for Bone typeCampbell Barton
This doesn't cause any functional change as the RNA property of Bone wasn't overridden by the _GenericBone's property, however the `children` property was documented twice, causing a warning.
2022-04-19PyDoc: fix including literal text immediately after function argsCampbell Barton
Literal text from examples could be included directly after function arguments, this caused a warning with mis-matching indentation.
2022-04-19Cleanup: Use correct capitalization of "F-Curve"Aaron Carlisle
2022-04-19UI: Fix typo in UI description for bpy.types.ActionFCurves.remove functionColin Basnett
The UI description for the `bpy.types.ActionFCurves.remove` was incorrect; seemingly a copy-paste typo from the `rna_Action_groups_remove` function. Reviewed By: sybren, Blendify Differential Revision: https://developer.blender.org/D14659