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 T95666: Crash when attempting multires linear subdivideSergey Sharybin
The crash was happening when the mesh had loose edges. Loose edges are not part of OpenSubdiv topology and hence should not be communicated to the refiner. Pass ta boolean flag indicating whether an edge is loose or not in the mesh foreach routines, which seems to be the easiest way.
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-05DRW: Fix memory leak in UniformArrayBufferClément Foucault
2022-02-04DRW: Fix a commentClément Foucault
2022-02-04Cleanup: Overlay: Remove uneeded UBO bindsClément Foucault
2022-02-04DRW: Add DRW_UNUSED_RESOURCE_TRACKING for ubo and ssboClément Foucault
When uncommented, this option will make any call binding a resource that is not present in the shader produce a warning message with its origin.
2022-02-04DRW: Add compute_ref calls, barriers calls, and vertex_buffer_refClément Foucault
- Compute ref let the size of dispatch be modified just before drawing. - Barrier call makes it possible to chain multiple compute passes in one pass. - DRW_shgroup_vertex_buffer_ref is the analog of DRW_shgroup_uniform_block_ref.
2022-02-04DRW: Fix bug in cubemap creation in draw::TextureClément Foucault
The order of if clause made impossible to create a cubemap.
2022-02-04Attributes: Infrastructure for generic 8-bit integer data typeHans Goudey
This commit adds infrastructure for 8 bit signed integer attributes. This can be useful given the discussion in T94193, where we want to store spline type, Bezier handle type, and other small enums as attributes. This is only exposed in the interface in the attribute lists, so it shouldn't be an option in geometry nodes, at least for now. I expect that this type won't be used directly very often, it should mostly be cast to an enum type. However, with support for 8 bit integers, it also makes sense to add things like mixing implementations for consistency. Differential Revision: https://developer.blender.org/D13721
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-03Curves: Changes to the new curves data-blockHans Goudey
This patch refactors the "Hair" data-block, which will soon be renamed to "Curves". The larger change is switching from an array of `HairCurve` to find indices in the points array to simply storing an array of offsets. Using a single integer instead of two halves the amount of memory for that particular array. Besides that, there are some other changes in this patch: - Split the data-structure to a separate `CurveGeometry` DNA struct so it is usable for grease pencil too. - Update naming to be more aligned with newer code and the style guide. - Add direct access to some arrays in RNA -- Radius is now retrieved as a regular attribute in Cycles. -- `HairPoint` has been renamed to `CurvePoint` -- `HairCurve` has been renamed to `CurveSlice` - Add comments to the struct in DNA. The next steps are renaming `Hair` -> `Curves`, and adding support for other curve types: Bezier, Poly, and NURBS. Ref T95355 Differential Revision: https://developer.blender.org/D13987
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-01GPUShader: Rename createInfo storage QualifiersClément Foucault
Using opt-in instead of opt-out to make code easier to read. Add combined flag enum. Making restrict an inverse flag option because it is so rare to use it.
2022-02-01Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-01Silence draw manager warning.Jeroen Bakker
This message isn't useful for users so silenced it.
2022-02-01Cleanup: Remove unused datatoc definitions.Jeroen Bakker
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-02-01Fix T95376: Fix crash when switching to UV workspace.Jeroen Bakker
Can also happen in other places when the overlay engine is active. Some parts of the overlay engine uses builtin shaders, but disable the color space conversion to the target texture. Currently there the overlay engine has its own set of libraries it could include and defined a macro to pass-throught the color space conversion. The library include mechanism currently fails when it couldn't find the builtin library in the libraries of the overlay engine. This only happened in debug mode. This change will not fail, but warns the developer if a library could not be included. In the future this should be replaced by a different mechanism that can disable the builtin library. See {T95382}.
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.