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
2021-07-26Cleanup: Fix compiler warning in previous commitAntonio Vazquez
2021-07-26Fix T90127: Merge Down layer doesn't take the transform location into accountAntonio Vazquez
Now the layer transformation is applied before the merge.
2021-07-26VSE: Fix snapping bugsRichard Antalik
Fix hold offset check causing missing snapping point when strip have only still frames. Fix effect strips of transformed strips causing snapping to prevoius strip positions. Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D11948
2021-07-26Cleanup: clang tidyJacques Lucke
2021-07-26Cleanup: clang-formatCampbell Barton
2021-07-26Cleanup: spelling in commentsCampbell Barton
2021-07-26Cleanup: use doxy commentsCampbell Barton
2021-07-24Fix: Remove automatic hiding of bones when using the pose sliderChristoph Lendenfeld
This patch addresses the issue raised in T88340. When entering a pose sliding operator bones would automatically get hidden. While technically not a bug it was decided that it is too confusing. Hiding with 'H' is still possible though, just won't happen automatically Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D11883 Ref: D11883
2021-07-24UI: Do not abbreviate/shorten wordingAaron Carlisle
Abbreviations are harder to read and understand thus it is best to be direct. For example without understanding and context it is hard to know exactly what "Len" means.
2021-07-24Revert "VSE UX: Make Speed Effect strips more user friendly."Germano Cavalcante
This reverts commit 3123f33380b35ae93afee0a30f36bc7181927b28 and a092baa7f90b2d5f13771d46f64ff5cf86cc5a05.
2021-07-24Many tweaks to f-curve drawing codeGermano Cavalcante
2021-07-24VSE UX: Make Speed Effect strips more user friendly.Germano Cavalcante
**Drawing Changes:** - F-curve drawing for Stretch, Multiply, Length and Frame Number. - Value drawing when no keyframes for Stretch, Length and Frame Numbers. General view of the new drawing for each speed effect mode: {F9796642, size=full} Detail of the horizontal zero (blue) line in the new `Multiply` mode: {F9798520, size=full} Nice to have (but I don't know how): - Auto adjusting of endframe when using Multiply or Boost. Differential Revision: https://developer.blender.org/D6110
2021-07-23Fix T89393: crash when selecting edges when geometry nodes has "on cage" ↵Jacques Lucke
turned on The core problem is that the geometry nodes modifier sometimes support "mapping" (i.e. it remembers which new vertices correspond to edit mode vertices) and sometimes it does not, depending on what the nodes are doing. Also see rB07ce9910f7cc. The solution here is that the fallback case in `BKE_mesh_foreach_mapped_edge` does not call the callback with "invalid" indices. Differential Revision: https://developer.blender.org/D12007
2021-07-23Fix T90065: disable attribute search in places where there is too little contextJacques Lucke
Differential Revision: https://developer.blender.org/D12008
2021-07-23Fix T89829: wrong active context path check in spreadsheetJacques Lucke
The problem was that the modifier was reevaluated all the time, even between showing the attribute search and clicking on the attribute name. This freed the data referenced by attribute search. The real bug here was that the dependency graph was tagged for update even though nothing changed. This was because the spreadsheet thought its active context has changed and it wanted to compute the new value to be shown in the spreadsheet. The reason for the bug was that I confused how the tree-path of a node editor works. The second element in the tree path contains the name of the group node in the root tree that we're in (instead of the first element). Differential Revision: https://developer.blender.org/D12009
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton
2021-07-23Animation: Generic Slider implementationChristoph Lendenfeld
Extract the slider gui implemented for the pose slide tools. Generalise it so it can be used by other tools as well. Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9314 Ref: D9314
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-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-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-21Cleanup: replace BLI_assert(test || !"text") with BLI_assert_msg(test, text)Campbell Barton
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: replace BLI_assert(0 && "text") with BLI_assert_msgCampbell Barton
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-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: 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-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-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: Remove redundant forward declarations.Jeroen Bakker
2021-07-20Cleanup: reserve C++ comments for disabled codeCampbell Barton
Use C comments for plain text.
2021-07-20Cleanup: use '#if 0' for disabling multiple linesCampbell Barton
2021-07-20Cleanup: spellingCampbell Barton
2021-07-20Cleanup: quiet GCC maybe-uninitialized warningCampbell Barton
Function signatures for snap callbacks used `const` incorrectly which was hidden by casting function types. This made it seem as if the input arguments wouldn't be change and wouldn't be initialized. Name return arguments with an `r_` prefix, order them last, remove function casts and correct `const` usage.
2021-07-20Cleanup: Clang formatAaron Carlisle
2021-07-19Cleanup: Move asset library reference C++ wrapper to own filesJulian Eisel
Although currently only the asset list code uses the asset library reference wrapper, it can stand on its own and may be used in more places in the future. So I prefer to give it its own source & header file. Also removed unused includes, added proper namespaces as per our C++ style guidelines, and removed an unnecessary TODO comment.
2021-07-19Fix some mesh edition macro operators incorrectly setting an empty ↵Bastien Montagne
description string. No operator or macro should be missing description. But if they do, then they should use NULL pointer, and not an empty string. This behavior was already enforced (through an assert) for operators, previous commit made it the same for macros.
2021-07-19Cleanup: Separate keyframes_draw and keyframes_keylist.Jeroen Bakker
The keylist functions are used in other places for none drawing related stuff. Fe pose_slide uses it.