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-02-10Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-10Fix invalid creation of partial image updaterSergey Sharybin
2022-02-10Cleanup: Clang tidy, unused variabel warningsHans Goudey
2022-02-08Fix T91253: Slow pose bone selection with many bonesCampbell Barton
Viewport cull bones during selection to avoid depth-picking reading the depth buffer for bones that aren't in the viewport. Files with thousands of bones could hang blender for seconds while selecting. The issue could still happen with overlapping bones or when zoomed out so all bones are under the cursor, however in practice this rarely happens. Now files with many bones select quickly. Related changes include: - Split `BKE_pchan_minmax` out of `BKE_pose_minmax`. - Add `mat3_to_size_max_axis` to return the length of the largest axis (used for scaling the radius). Reviewed By: sybren Maniphest Tasks: T91253 Ref D13990
2022-02-07Curves: Rename "Hair" types, variables, and functions to "Curves"Hans Goudey
Based on discussions from T95355 and T94193, the plan is to use the name "Curves" to describe the data-block container for multiple curves. Eventually this will replace the existing "Curve" data-block. However, it will be a while before the curve data-block can be replaced so in order to distinguish the two curve types in the UI, "Hair Curves" will be used, but eventually changed back to "Curves". This patch renames "hair-related" files, functions, types, and variable names to this convention. A deep rename is preferred to keep code consistent and to avoid any "hair" terminology from leaking, since the new data-block is meant for all curve types, not just hair use cases. The downside of this naming is that the difference between "Curve" and "Curves" has become important. That was considered during design discussons and deemed acceptable, especially given the non-permanent nature of the somewhat common conflict. Some points of interest: - All DNA compatibility is lost, just like rBf59767ff9729. - I renamed `ID_HA` to `ID_CV` so there is no complete mismatch. - `hair_curves` is used where necessary to distinguish from the existing "curves" plural. - I didn't rename any of the cycles/rendering code function names, since that is also used by the old hair particle system. Differential Revision: https://developer.blender.org/D14007
2022-02-07UV: use grey on black for dashed-line displayCampbell Barton
Dashed line display was changed since 2.7x, using white on black instead of grey on black. This made selection difficult to see as white is brighter than the default selected color. Match the grey used in 2.7x.
2022-02-07Cleanup: spelling in commentsCampbell Barton
2022-02-06DRW: Add preprocessor error if including common_view_lib.glsl without draw_viewClément Foucault
This avoid making include mistake and potentially detect areas that do not really need common_view_lib.glsl.
2022-02-06Merge branch 'blender-v3.1-release'Hans Goudey
2022-02-06Fix: Displaying any point cloud in the viewport causes crashHans Goudey
Caused by rBf75449b5f2b04b79, which was missing a null check when attempting to extract a `CustomData` pointer from an mesh that might be null if the object isn't a mesh object. The commit added null checks elsewhere, so simply adding them here is a straightforward fix. Fixes T95526, T95539
2022-02-06GPU: move gpu_shader_shared_utils.h to the public section of the moduleClément Foucault
This is then easier to include in other modules.
2022-02-04Cleanup: Overlay: Remove uneeded UBO bindsClément Foucault
2022-02-04Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-04Fix T95467: Textures disappear when going to Edit Mesh on Solid Texture modeSergey Sharybin
The check for existence of custom data layers did not take wrapper nature of mesh into account. Quickest and safest for 3.1 solution is to take care of branching of checks in the draw manager. Ideally both wrapper and mesh access will happen via the same public API without branching in the "user" code. That is something outside of the fix for the coming release though. Differential Revision: https://developer.blender.org/D14013
2022-02-04Merge branch 'blender-v3.1-release'Clément Foucault
# Conflicts: # source/blender/draw/engines/workbench/workbench_effect_cavity.c
2022-02-04Image Editor: Fix slowdown with 8b colormanaged images.Jeroen Bakker
Byte images are converted to float. Due to an issue how VSE cache is freeing its images we cannot store these float buffers what leads to recalculating it for each change in the image editor. This fix will reduce the slowdown to areas that have the root cause of the memory leak, so the buffers can be reused between refreshes. NOTE: The root cause should still be fixed. Thanks for reporting Sybren!
2022-02-04Cleanup: Workbench: Remove unused resources in cavity shadersClément Foucault
This avoid uneeded resource binds.
2022-02-04Fix T95284 Workbench: "World" Cavity Type Doesn't Render AnythingClément Foucault
This was caused by a faulty UBO bind (not updated after renaming).
2022-02-04Fix T95284 Workbench: "World" Cavity Type Doesn't Render AnythingClément Foucault
This was caused by a faulty UBO bind (not updated after renaming).
2022-02-04Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-04Compositor: Backdrop mode changes node grid.Jeroen Bakker
When viewing backdrop on top of the node grid, the grid would be rendered black when the mode wasn't set to RGBA. This fix fixes this by reverting the previous fix of drawing the backdrop and implement a different one that recomputes the UV coordinates on the screen edges.
2022-02-04Remove internal proxy code, and deprecate related DNA data.Bastien Montagne
Part of T91671. Not much else to say, this is mainly a massive deletion of code. Note that a few cleanups possible after this proxy removal were kept out of this commit to try to reduce a bit its size. Reviewed By: sergey, brecht Maniphest Tasks: T91671 Differential Revision: https://developer.blender.org/D13995
2022-02-02Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-02Draw Manager: Marked work around code.Jeroen Bakker
Mark the work around that was added for the VSE memory leak.
2022-02-02Workaround for VSE memory leak.Jeroen Bakker
This is a temp fix for a memory leak where the VSE isn't aware that a float representation of the image could exist. The VSE somehow doens't clears it (refcounter is still 1). The work around is just to let the image engine clean up all the data it created. Potential this would add more overhead when buffers are needed more than once.
2022-02-02Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-02Cleanup: Use correct identifier for ShaderParameters.Jeroen Bakker
Code use struct and class, but should only have used struct.
2022-02-02Cleanup: exclude bone names & axes from selection drawingCampbell Barton
These aren't used for picking bones so there is no need to draw them.
2022-02-02Cleanup: spelling in commentsCampbell Barton
2022-02-01Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-01Partial Fix: Showing Compositor Backdrop in node editor.Jeroen Bakker
Since splitting the depth and the color shader in the image engine the backdrop wasn't visible anymore. The reson is that the min max uv coordinates were never working for the node editor backdrop that uses its own coordinate space. This partial fix will ignore the depth test when drawing the color part of the backdrop. This will still have artifacts that are visible when showing other options as RGBA. Proper fix would be to calculate the the uv vbo in uv space and not in image space.
2022-01-31Merge branch 'blender-v3.1-release'Campbell Barton
2022-01-31Merge branch 'blender-v3.1-release'Campbell Barton
2022-01-31Merge branch 'blender-v3.1-release'Campbell Barton
2022-01-31Image editor: Fix drawing artifacts with render results.Jeroen Bakker
Use the input depth texture to determine if the color of the texture should be shown.
2022-01-31Fix T95299: Empty render results show transparency checkerboard.Jeroen Bakker
When an image buffer cannot be read the checkerboard should not be drawn.
2022-01-31Image Editor: Fix background drawing of empty tiles.Jeroen Bakker
Empty (UDIM) tiles where drawn with a transparency checkerboard. They should be rendered with a border background. The cause is that the image engine would select a single area that contained all tiles and draw them as being part of an image. The fix is to separate the color and depth part of the image engine shader and only draw the depths of tiles that are enabled.
2022-01-31Cleanup: spelling in commentsCampbell Barton
2022-01-31Cleanup: use our own conventions for tags in commentsCampbell Barton
2022-01-28Image Engine: Remove unused shader parameter Color.Jeroen Bakker
This change removes an unused shader parameter that also collided when a local varialble with the same name was used on different platforms.
2022-01-28Image Engine: Use GPUShaderCreateInfo.Jeroen Bakker
Ported the image engine shaders to use the GPUShaderCreateInfo struct. No functional changes.
2022-01-28Image engine: Remove unused parameter.Jeroen Bakker
Parameter was used to still be compatible with the previous drawing mode. The previous mode isn't available anymore so the parameter can should be removed.
2022-01-28Image Engine: Fix issue show alpha flag not reset.Jeroen Bakker
After showing the alpha in the image editor the setting was not reset so all images in the editor showed as being transparent. This commit fixes this by resetting the flag before updating.
2022-01-28Draw: Remove unused code in image engine shader.Jeroen Bakker
2022-01-28Draw: Remove unused shader.Jeroen Bakker
tile images aren't a special case anymore for the image engine.
2022-01-28DrawManager: Image engine support huge images.Jeroen Bakker
Adding better support for drawing huge images in the image/uv editor. Also solved tearing artifacts. The approach is that for each image/uv editor a screen space gpu texture is created that only contains the visible pixels. When zooming or panning the gpu texture is rebuild. Although the solution isn't memory intensive other parts of blender memory usage scales together with the image size. * Due to complexity we didn't implement partial updates when drawing images tiled (wrap repeat). This could be added, but is complicated as a change in the source could mean many different changes on the GPU texture. The work around for now is to tag all gpu textures to be dirty when changes are detected. Original plan was to have 4 screen space images to support panning without gpu texture creation. For now we don't see the need to implement it as the solution is already fast. Especially when GPU memory is shared with CPU ram. Reviewed By: fclem Maniphest Tasks: T92525, T92903 Differential Revision: https://developer.blender.org/D13424
2022-01-27Cleanup: Clang tidyHans Goudey
Use nullptr, use named parameters, fix deprecated header
2022-01-27GPUShaderCreateInfo: Remove push_constant indexingClément Foucault
This is too much impractical and offers no real benefit.
2022-01-27Cleanup: Workbench: Remove extern shader stringsClément Foucault
This is not needed anymore with the new dependency system.
2022-01-26D13910: Workbench: Port shaders to use GPUShaderCreateInfoClément Foucault
Also adds a few things to GPUShader for easily create shaders. Heavy usage of macros to compose the createInfo and avoid duplications and copy paste bugs. This makes the link between the shader request functions (in workbench_shader.cc) and the actual createInfo a bit obscure since the names are composed and not searchable. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D13910