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-12-29Nodes: Cleanup: Remove no op registration functionsAaron Carlisle
All these function paramaters are set to NULL so they arent necessary. Reviewed By: HooglyBoogly, JacquesLucke Differential Revision: https://developer.blender.org/D13686
2021-12-29gpu.types.GPUOffScreen: accept format argument for color textureGermano Cavalcante
Some projects need more than 8-bit RGBA off-screen, so add the ability to accept color format and defaults to RGBA8 so existing code should not be affected. Currently supported formats: - RGBA8 (default) - RGBA16 - RGBA16F - RGBA32F Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D13650
2021-12-29Fix: VSE colormix blend factor not workingRichard Antalik
Blend factor was used to adjust alpha of background image, which is not correct. This was done in fdee84fd567a where another change was, that background alpha is copied into result, which is correct. Apply blend factor to foreground image alpha channel.
2021-12-29Fix T94422: Shading/Normals break on array modifier capsPhilipp Oeser
The array modifier does not necessarily tag normals dirty. If it doesnt, normals are recalculated "internally" using the offset ob transform. This was happening for the array items, but not for the caps. Now do the same thing for caps. Maniphest Tasks: T94422 Differential Revision: https://developer.blender.org/D13681
2021-12-29Fix T94453: Weld modifier crash after recent cleanupHans Goudey
I had assumed that the span's size was the same as the length variable. In the future, separate lengths could be removed in favor of using lengths directly from spans.
2021-12-29Nodes: Convert shader, shader category nodes to c++Aaron Carlisle
Also add file namespace This is needed to use new node APIs Differential Revision: https://developer.blender.org/D13684
2021-12-29Cleanup: clang-tidyAaron Carlisle
Fixes two instances of `-Wunused-but-set-variable` There are several more of these but these were low hanging and noisy with one being in a header functions.
2021-12-29Cleanup: clang-tidyAaron Carlisle
- modernize-deprecated-headers - modernize-redundant-void-arg Missed in rB11ac276caaa6e6d42176452526af97cf972abb5f
2021-12-29Cleanup: Remove unused node tree "local sync" functionsHans Goudey
2021-12-29Cleanup: Use indices instead of pointersGermano Cavalcante
This improves code readability. Take the opportunity and improve the comments too.
2021-12-29Cleanup: Return early, organize variable declarationsHans Goudey
2021-12-28Nodes: Enable unity build for function nodesAaron Carlisle
Unity build saves 5 seconds off the total build time when compiling `bf_nodes_function`. Total build times went from 25s to 20s (20% reduction), tested with ninja on linux running i5 8250U.
2021-12-28Nodes: Add bf_nodes_function moduleAaron Carlisle
In the future this will be used to support unity builds for function nodes Differential Revision: https://developer.blender.org/D13682
2021-12-28Nodes: Split shader color ramp into its own fileAaron Carlisle
2021-12-28Nodes: Declare function nodes in individual file namespaceAaron Carlisle
To be used in the future to support unity builds
2021-12-28Fix: Duplicate link search entries for attribute statistic nodeHans Goudey
Using the output declarations is incorrect because there is a declaration for each type. Instead loop over the names directly, since it will make it easier to add an integer mode that only supports some of the outputs.
2021-12-28Fix T94442: Trim curve node can crash with duplicate pointHans Goudey
The calculation to find the factor between two evaluated points assumed that the points were not at the same location. This assumption is some- what reasonable, since we might expect `lower_bound` to skip those point anyway. However, the report found a case where the first two evaluated points were coincident, and there is no strong reason not to make this safe, so add a check for 0 length before the division.
2021-12-28GPencil: Avoid crashes calling from pythonAntonio Vazquez
This is part of T94439
2021-12-28Nodes: Add bf_nodes_composite moduleAaron Carlisle
In the future this will be used to support unity builds for composite nodes Differential Revision: https://developer.blender.org/D13678
2021-12-28Fix T94380: Scrolling zooms in spreadsheet data set regionHans Goudey
The region used to be type "Channels", but the standard for this type is "Tools", which is what the file browser uses. This follows the changes in rB01df48a98394, which also make the region more "standard."
2021-12-28Cleanup: Loops in VSE effect processingRichard Antalik
Some effect functions looped over alternating lines, previously with different factors. Since only one factor is used, code can be simplified by looping all lines in one for loop. There should be no functional changes.
2021-12-28Fix T94439: Some GPencil operators crash when calling from consoleAntonio Vazquez
This fix avoid the segment fault for several operators.
2021-12-28LibOverride: better handling of the "no override of bones' shapes" case.Bastien Montagne
Also avoid overriding collections of bone shape objects, if possible.
2021-12-28LibOverride: Tweak RNA 'need resync' detection code.Bastien Montagne
* Assert about source ID of an overridden pointer property not being a liboverride was not necessary, just skip in that case. * Tag actual 'real' ID owner for resync, and not (potentially) an embedded one.
2021-12-28Cleanup: Factor in VSE effect processingRichard Antalik
2 factor variables were passed to effects, but they were hard coded to have same value. Remove duplicate variable from arguments, rename single argument to `fac`. Inverted factor variables were renamed to `mfac`. Any other factor related variables are prefixed with `temp_`. There should be no functional changes.
2021-12-28Fix loss of cloth disk cache on reload in library overrides.Alexander Gavrilov
If the override system creates an override record for the cache name (no idea why though), it trashes the disk cache on file load. The reason is that it tries to rename cache files in update handler when assigning the name, and BLI_rename deletes the target file even if both names are the same. This is a safe fix that simply aborts the pointless rename attempt. Differential Revision: https://developer.blender.org/D13679
2021-12-28Fix T94408: missing sockets after adding node groupJacques Lucke
2021-12-28Fix compile error when building without OpenSubDivKévin Dietrich
Stubs were missing for functions added to opensubdiv_evaluator_capi.h
2021-12-28Fix T94420: deadlock with subsurf modifiersKévin Dietrich
The deadlock was caused as the lock on the Mesh mutex used to compute the subdivision wrapper was not released in some early exits of the function.
2021-12-28Revert "LineArt: Intersection function additional clamping"YimingWu
This reverts commit 0a68fa8e14bdafaa2bc456981a571a3f65ad8b76.
2021-12-28LineArt: Intersection function additional clampingYimingWu
To handle a rare case where it leads to a -1 index in isect order lookup
2021-12-28Cleanup: clang formatAaron Carlisle
2021-12-28Nodes: Declare shader nodes in individual file namespaceAaron Carlisle
To be used in the future to support unity builds
2021-12-27GPencil: Fix error in previous CleanupAntonio Vazquez
2021-12-27Cleanup: Use vector functionAaron Carlisle
2021-12-27Cleanup: Store cursor location in tGPspoint as an arrayAaron Carlisle
Fixes many instances of `-Wstringop-overread` warning on GCC 11 Differential Revision: https://developer.blender.org/D13672
2021-12-27Cleanup: clang tidyJacques Lucke
Use c++ headers; use nullptr; redundant `void` in parameter list; inconsistent parameter name.
2021-12-27Render: move editor/render module to c++Jacques Lucke
Doing this in preparation for some work on asset preview generation. Differential Revision: https://developer.blender.org/D13676
2021-12-27Fix T93941: geometry proximity breaks with high resolution meshJacques Lucke
The calls to `.fill` were overwriting indices that are processed by other threads.
2021-12-27OpenSubDiv: add support for an OpenGL evaluatorKévin Dietrich
This evaluator is used in order to evaluate subdivision at render time, allowing for faster renders of meshes with a subdivision surface modifier placed at the last position in the modifier list. When evaluating the subsurf modifier, we detect whether we can delegate evaluation to the draw code. If so, the subdivision is first evaluated on the GPU using our own custom evaluator (only the coarse data needs to be initially sent to the GPU), then, buffers for the final `MeshBufferCache` are filled on the GPU using a set of compute shaders. However, some buffers are still filled on the CPU side, if doing so on the GPU is impractical (e.g. the line adjacency buffer used for x-ray, whose logic is hardly GPU compatible). This is done at the mesh buffer extraction level so that the result can be readily used in the various OpenGL engines, without having to write custom geometry or tesselation shaders. We use our own subdivision evaluation shaders, instead of OpenSubDiv's vanilla one, in order to control the data layout, and interpolation. For example, we store vertex colors as compressed 16-bit integers, while OpenSubDiv's default evaluator only work for float types. In order to still access the modified geometry on the CPU side, for use in modifiers or transform operators, a dedicated wrapper type is added `MESH_WRAPPER_TYPE_SUBD`. Subdivision will be lazily evaluated via `BKE_object_get_evaluated_mesh` which will create such a wrapper if possible. If the final subdivision surface is not needed on the CPU side, `BKE_object_get_evaluated_mesh_no_subsurf` should be used. Enabling or disabling GPU subdivision can be done through the user preferences (under Viewport -> Subdivision). See patch description for benchmarks. Reviewed By: campbellbarton, jbakker, fclem, brecht, #eevee_viewport Differential Revision: https://developer.blender.org/D12406
2021-12-27Nodes: Support linking to existing group input from link drag search.Jacques Lucke
Before one could only create a new group input using the link drag search. With this patch it becomes possible to create a Group Input node for an existing input. Differential Revision: https://developer.blender.org/D13674
2021-12-27BLI: add utility to check if type is any specific typeJacques Lucke
This adds `blender::is_same_any_v` which is the almost the same as `std::is_same_v`. The difference is that it allows for checking multiple types at the same time. Differential Revision: https://developer.blender.org/D13673
2021-12-27Allocator: add missing includeJacques Lucke
The placement-new operator requires `#include <new>`. It is used in `MEM_new`.
2021-12-27LineArt: Protecting bounding area links.YimingWu
In case they overflowed the bounding area maximum link count, Protect the link array so it doesn't crash.
2021-12-27LineArt: Remove duplicated edge-boundbox linking.YimingWu
The edge is linked twice from differen calls during line art calculation Probably caused by a merge and both calls stayed for some reason. This would lead to edge link overflowing its limit of 2^16 items.
2021-12-26Cleanup: Use array for BKE cursor functionsAaron Carlisle
Missed this function in rB67525b88d2e
2021-12-26Cleanup: Fix compile warningAaron Carlisle
Own mistake in rB67525b88d2e
2021-12-26Fix T94387: Mesh sequence cache, crash when clicking a panelKévin Dietrich
The crash happens when opening a panel (added in rB43f5e761a66e87fed664a199cda867639f8daf3e) when no CacheFile is set in the modifier. To fix this, check that the CacheFile pointer is not null before attempting to draw anything.
2021-12-26Docs: Add to and cleanup attribute API docsHans Goudey
Most of the comment block is similar to the text in the source code documentation wiki. It's helpful to have some text in a header file too, so it's closer for programmers already looking at the code. This also uses more consistent syntax and wording in the comments about the attribute API in `GeometryComponent`. Ref T93753 Differential Revision: https://developer.blender.org/D13661
2021-12-25Cleanup: Use more common variable nameHans Goudey
It's preferred to use `area` as a name for `ScrArea` variables.