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
path: root/source
AgeCommit message (Collapse)Author
2021-07-22Versioning: move "until next subveresion bump" codeSybren A. Stüvel
Move "until next subveresion bump" code into the 300.13 version block. This should have happened in rB8d5b9478a25.
2021-07-22Cleanup: Silence warning - unused parameterGermano Cavalcante
2021-07-22Fix T89733: Py API: bpy.data.orphans_purge argument parsingYann Lanthony
On Windows, using `bpy.data.orphans_purge` with some arguments (eg: `do_recursive=True`) does not produce the expected results. This is due to arguments not being parsed correctly on this platform with the current code. The proposed fix is based on how other functions with boolean attributes are exposed to the Python API. Reviewed By: #python_api, mont29 Maniphest Tasks: T89733 Differential Revision: https://developer.blender.org/D11963
2021-07-22Make polls for removing mesh data layers consistentPhilipp Oeser
This was reported in T90026 for attributes, but was also true for: - UVMaps - Vertex Colors - Sculpt Vertex Colors - Face Maps For Vertex groups and Shapekeys this was already done (in that their remove poll would check if there is a vertex group or shapekey to begin with), now make this consistent across all mentioned types. Thx @vvv for the initial patch (where this was done for attributes only) ref T90026 Reviewed By: HooglyBoogly Maniphest Tasks: T90026 Differential Revision: https://developer.blender.org/D11990
2021-07-22Bump subversion to avoid infinite enabling pose_library add-onSybren A. Stüvel
Bump Blender's sub-version to make sure the pose_library add-on isn't auto-enabled on every run of Blender.
2021-07-21Cleanup: Move reorganize asset filesJulian Eisel
I'm trying to move away from general files with lots of things in them, and instead have many small & focused files. I find that easier to work with since everything has clear responsibilities, even if there is some minor overhead in managing all these files. I also try to differentiate more clearly between public and internal files. So source files and internal headers are in a `intern/` sub-directory, public functions are in a number of headers one level higher. For convenience and to make this compatible with our existing general headers in `editors/include`, I made the `ED_asset.h` there include all these public headers. This is of course a bit of an experiment, let's see how it works in practice. Also corrected the name of `ED_asset_can_make_single_from_context()`.
2021-07-21Draw Cache: extract tris in parallel rangesGermano Cavalcante
The `ibo.tris` extraction in multithread is currently only done if the mesh has only 1 material. Now we cache a map indicating the index of each polygon after sort and thus allow the extraction of tris with materials in multithreaded. As caching is a heavy operation and was already being performed in multi-thread for triangle offsets, no significant improvements are expected. The benefit will be much greater when we can skip updating the cache while transforming a geometry. **Profiling:** ||master:|PATCH: |---|---|---| |large_mesh_editing_materials:|Average: 13.855380 FPS|Average: 15.525684 FPS ||rdata 9ms iter 36ms (frame 71ms)|rdata 9ms iter 29ms (frame 64ms) |subdiv_mesh_final_only_materials:|Average: 28.113742 FPS|Average: 28.633599 FPS ||rdata 0ms iter 1ms (frame 36ms)|rdata 0ms iter 1ms (frame 35ms) 1.1x overall speedup Differential Revision: https://developer.blender.org/D11445
2021-07-21Fix T90017: Bone widget drawing inconsistent with editingGermano Cavalcante
The `lines_loose` extractor did not trigger loose geometry caching.
2021-07-21Cleanup: Move loose geometry cache creation to render data taskGermano Cavalcante
This centralizes caching functions.
2021-07-21Cleanup: Centralize/unify asset library reference from/to enum codeJulian Eisel
This was an open TODO, I wanted to have code for translating asset library references from and to enum values in a central place, and access that in the same way from both the Asset Browser and the Workspace RNA code. * Adds own file for the related functions. * Adds doxygen comments. * Updates RNA callbacks to properly use these functions. * Let these functions call each other, avoid duplicating logic.
2021-07-21Assets: Replace duplicated asset library reference type from DNAJulian Eisel
Since recently it's possible to access assets from outside the File/Asset Browser, via the asset view template. So we are slowly moving away from file space specific code to dedicated asset system code. I introduced `AssetLibraryReference` as a duplicate of `FileSelectAssetLibraryUID`, with a plan to delete the latter in a separate cleanup commit. That's exactly what this commit is. This will cause Asset Browsers to open with the default "Current File" Asset Library. We could avoid that, but it's a minor issue really.
2021-07-21Assets: Rename workspace active asset library DNA variableJulian Eisel
This new variable was introduced with 7898089de3f2. We don't usually use an `active` prefix variable. Plus, this makes the name match the one of the Asset Browser active library variable, so we can use the `rna_def_asset_library_reference_common()` helper for both. This will cause Asset Views to open with the default "Current File" Asset Library. We could avoid that, but it's a minor issue really.
2021-07-21Cleanup: Add missing doxygen file/group comment in new asset fileJulian Eisel
2021-07-21Fix incorrect use of BLI_assert with error stringsCampbell Barton
Some asserts were never raised because of invalid checks.
2021-07-21Cleanup: replace BLI_assert(test || !"text") with BLI_assert_msg(test, text)Campbell Barton
2021-07-21Fix bug in assert in delaunay test.Howard Trickey
Assert was trying to say x coords of arcs lined up, and didn't do that.
2021-07-21Cleanup: Split set_preview_visibilty.Jeroen Bakker
2021-07-21Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")Campbell Barton
2021-07-21Cleanup: spellingCampbell Barton
2021-07-21Cleanup: replace BLI_assert(0 && "text") with BLI_assert_msgCampbell Barton
2021-07-21Fix T89881: ignore unavailable sockets when searching for link cyclesJacques Lucke
2021-07-21Fix compile issue.Jeroen Bakker
2021-07-21Cleanup Preview rendering: Separate world preparation.Jeroen Bakker
Small cleanup that moves world preparation out of scene preparation.
2021-07-21Cleanup: use named enum types.Jeroen Bakker
Added ePreviewRenderMethod and ePreviewType.
2021-07-21Cleanup: replace NB with NOTE in commentsCampbell Barton
2021-07-21UI: Use more descriptive wording for particle modifier conversionsSmitty van Bodegom
Currently the wording is a bit unclear: it doesn't specify //what// the particles will be converted into. This clarifies it by stating what the particles will be converted into: they will either be converted to a mesh or the instances will be made real. Reviewed By: Blendify Differential Revision: https://developer.blender.org/D11795
2021-07-20Fix T89827: Attribute transfer node crash on mesh with no facesHans Goudey
Just add a check for whether the mesh has faces when retrieving an attribute on the corner domain. In the future there could be an info message in the node in this case, since maybe it's not intuitive.
2021-07-20Fix memory leak with asset view template operator propertiesJulian Eisel
2021-07-20Cleanup: Store asset-handle in drag dataJulian Eisel
Would previously pass a few properties that are available via the asset-handle now. This asset-handle is also required for some of the asset API, e.g. the temporary ID loading. This will probably be needed before too long.
2021-07-20Cleanup: Use asset utility function to get the asset .blend pathJulian Eisel
For this to work, the utility function needs to be callable without context, which is only needed for a File Browser specific hack anyway (doesn't apply to this usage of it).
2021-07-20Cleanup: Move asset-handle functions to own fileJulian Eisel
Keeps files minimal and focused. I much prefer that over having all kinds of stuff in general files like `asset_edit.cc`.
2021-07-20Cleanup: Getters for asset-handle dataJulian Eisel
While the asset-handle design is supposed to be temporary (see 35affaa971cf), I prefer keeping the fact that it's nothing but a file entry pointer an implementation detail that is abstracted away. So this introduces getters for the file data we typically access for asset-handles.
2021-07-20Cleanup: Use const for internal file data of asset-handleJulian Eisel
Note that the current asset-handle design is temporary, see 35affaa971cf. I still prefer this to be const, as code outside the asset-list/file-list code should never mess with the file data of an asset.
2021-07-20Asset: Clearly describe RNA property description as temporaryJulian Eisel
The asset handle design is only temporary (see 35affaa971cf) and this RNA property is only needed for internal, technical reasons of the asset view template. So although not nice, at least make it clear in the RNA property description that this should not be used.
2021-07-20Cleanup: Correct asset TODO comment, move setter next to getterJulian Eisel
2021-07-20Fix T89993: Failed assert drawing single point cyclic splinesHans Goudey
The same check used for the curve to mesh node.
2021-07-20Fix T89687: Curve to mesh node incorrect face orientationHans Goudey
The new faces should have a winding direction that points them outward, the fix was swapping the order of each face's edge and vertex indices.
2021-07-20Cleanup: Use const arguments and less sequential iterationHans Goudey
Using const indexes and offsets helps to make the logic less sequential, which is hopefully easier to understand and possibly easier to parallelize in the future. Also order return arguments last.
2021-07-20Armature test: properly initialize bone hierarchySybren A. Stüvel
Fix segfault in `BKE_armature_find_selected_bones_test` by property initializing the bone hierarchy listbases. No functional changes to Blender.
2021-07-20Cleanup: Fix missing braces warning on ClangAnkit Meel
2021-07-20Pose Library: remove assumption about Action group namesSybren A. Stüvel
Remove the assumption of the pose library that Action groups are named after the bones in the armature. Even though this assumption is correct when the keys are created by Blender, action groups can be renamed. Keys created by Python scripts can also use arbitrary group names. Since there is more code in Blender making this assumption, and looping over selected bones is also a common occurrence, this commit contains some generic functionality to aid in this: - `BKE_armature_find_selected_bones`: function that iterates over all bones in an armature and calls a callback for each selected one. It returns a struct with info about the selection states (all or no bones selected). - `BKE_armature_find_selected_bone_names(armature)` uses the above function to return a set of selected bone names. - `BKE_pose_find_fcurves_with_bones()` calls a callback for each FCurve in an Action that targets a bone, also passing it the bone name.
2021-07-20Cleanup: fix clang-tidy warning readability-qualified-autoSybren A. Stüvel
No functional changes.
2021-07-20Cleanup: fix clang-tidy readability-else-after-returnSybren A. Stüvel
No functional changes
2021-07-20Cleanup: fix clang-tidy warning modernize-use-nullptrSybren A. Stüvel
No functional changes.
2021-07-20Pose backup: convert from C to C++Sybren A. Stüvel
Convert `pose_backup.c` (in C) to `pose_backup.cc` (in C++). This will make future improvements easier. For now, it's the same code with just some additional explicit casts (C++ doesn't allow implicitly casting `void *`), `NULL` changed into `nullptr`, and some other simple changes. No functional changes.
2021-07-20Fix T89981: missing refresh on the compositors render layer node when ↵Philipp Oeser
adding/removing AOVs Just refresh the node's outputs via ntreeCompositUpdateRLayers(). Maniphest Tasks: T89981 Differential Revision: https://developer.blender.org/D11973
2021-07-20Fix: Bezier segment node adds handles incorrectlyJohnny Matthews
This caused the "cyclic" attribute to appear dysfunctional.
2021-07-20Fix T89979: Assert in edit mode with curve to mesh nodeHans Goudey
The node tagged polys normals dirty, but the function to calculate the normals didn't clear the dirty flags for polys. Now clear the poly and corner dirty normal flags.
2021-07-20Cleanup: use single back-tick quoting in commentsCampbell Barton
While doxygen supports both, conform to our style guide. Note that single back-tick's are already used in a majority of comments.
2021-07-20Cleanup: use doxygen style parameters in noise.cCampbell Barton
These used their own ad-hoc syntax.