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-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.
2021-07-20Cleanup: added const keyword to BLI_dlrbTree search functions.Jeroen Bakker
2021-07-20Cleanup: Remove redundant forward declarations.Jeroen Bakker
2021-07-20Fix crash in delaunay C interface test.Howard Trickey
The test forgot to set the new need_ids field, which luckily exposed a bug in the C api for delaunay when that field is false. Fixed the bug and the test, and added a test for the need_ids false case.
2021-07-20Compositor: Fix crash when connecting multiple constant inputsManuel Castilla
Operation receiving inputs was being folded more than once when it was constant foldable.
2021-07-20LineArt: UI cleanups.YimingWu
Wording on the UI, slider consistency and material mask switches layout. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: http://developer.blender.org/D11839
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: Make function static, use const object argumentHans Goudey
Also use `const Curve *` instead of `const Object *`, since the function works at a lower level than objects anyway. And also remove another unused function. Since this section of code for converting curves to meshes will likely be replaced, it's nicer to see which parts actually remain used at this point.
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: Remove unused functionHans Goudey
2021-07-20Cleanup: Clang formatAaron Carlisle
2021-07-19Compositor: Export operation results as debug optionManuel Castilla
When fixing issues, seeing operation results can be helpful for detecting which operation went wrong. This commit adds an option for exporting all operations results to image files. Exceptions are: - Output operations: They are already exported or can be seen in UI. - Constant operations: There are too many and is rarely useful. They are exported to "<temp session folder>/COM_operations/" with filenames "<operation class name>_<operation id>.png". Only works on full frame execution mode. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11722
2021-07-19Compositor: Full frame Brightness nodeManuel Castilla
Adds full frame implementation to this node operation. No functional changes. 2.4x faster than tiled fallback. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11677