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-05-11Fix T97330: GPU Subdiv compiler error.Jeroen Bakker
GLSL has different max number of ssbo per glsl stage. This patch checks if the number of compute ssbo blocks matches our requirements for the GPU Subdiv, before enabling it. Some platforms allow more ssbo bindings then blocks per stage.
2022-05-11Fix T97330: GPU Subdiv compiler error.Jeroen Bakker
GLSL has different max number of ssbo per glsl stage. This patch checks if the number of compute ssbo blocks matches our requirements for the GPU Subdiv, before enabling it. Some platforms allow more ssbo bindings then blocks per stage.
2022-05-11Mesh: Add Auto Smooth option to Shade Smooth operatorPablo Vazquez
Add a property to the **Shade Smooth** operator to quickly enable the Mesh `use_auto_smooth` option. The `Angle` property is exposed in the **Adjust Last Operation** panel to make it easy to tweak on multiple objects without having to go to the Properties editor. The operator is exposed in the `Object` menu and `Object Context Menu`. === Demo === {F13066173, size=full} Regarding the implementation, there are multiple ways to go about this (like making a whole new operator altogether), but I think a property is the cleanest/simplest. I imagine there are simpler ways to achieve this without duplicating the `use_auto_smooth` property in the operator itself (getting it from the Mesh props?), but I couldn't find other operators doing something similar. Reviewed By: #modeling, mont29 Differential Revision: https://developer.blender.org/D14894
2022-05-11Cleanup: spelling in comments/stringsCampbell Barton
D14918 from @linux_dr with some other changes included.
2022-05-11Cleanup: use 'num' / 'size' suffix instead of 'sz'Campbell Barton
GPU code used `sz` as an abbreviation for size, as well as a few other places. Use size where this represents a size in bytes, see: T85728.
2022-05-11Cleanup: use '_num' suffix, mostly for curves & spline codeCampbell Barton
Replace tot/amount & size with num, in keeping with T85728.
2022-05-11Cleanup: use '_num' suffix instead of '_size' for CurveGeometryCampbell Barton
Follow conventions from T85728.
2022-05-10Curves: Interpolate point count in add brushHans Goudey
This commit adds an option to interpolate the number of control points in new curves based on the count in neighboring existing curves. The idea is to provide a more automatic default than manually controlling the number of points in a curve, so users don't have to think about the resolution quite as much. Internally, some utilities for creating new curves are extracted to a new header file. These can be used for the various nodes and operators that create new curves. The top-bar UI will be adjusted in a separate patch, probably moving all of the settings that affect the size and shape of the new curves into a popover. Differential Revision: https://developer.blender.org/D14877
2022-05-10Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-10LibOverride: Fix memory leak in resyncing code.Bastien Montagne
2022-05-10LibOverride: Fix bad ID getting hierarchy root updated.Bastien Montagne
Followup to rB6c679aca1770c37.
2022-05-10LibOverride: Make process checking validity of hierarchy roots more robust.Bastien Montagne
Code was not really designed to hanlde corrupted (e.g. local ID) root hierarchies, now it should handle better those invalid cases and restore proper sane situation as best as possible. Fixes crashes with some corrupted files from Blender studio.
2022-05-10Remove debug code enabled in previous commit.Jeroen Bakker
2022-05-103d texture painting: Use center uv pixel as anchor.Jeroen Bakker
Previously the bottom left of a pixel was used during pixel extraction what resulted in that the pixels were moved a bit to the bottom left. By using the center uv pixel the extracted pixels are more balanced and would improve future features like seam bleeding.
2022-05-09Refactor: Move resample curves code to the geometry moduleHans Goudey
This commit moves the code for the resample curves node to the geometry module, to allow reusing it in any editor. Split from D14870.
2022-05-09Move particle system modifier to C++Jacques Lucke
The modifier is supposed to create a Curves data block soon, which helps with the transition to the new Curves object in drawing code. Utilities for the new Curves object are mostly in C++.
2022-05-09Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-09Fix T97927: bpy.utils.units.to_string uses wrong units for velocity, ↵Bastien Montagne
acceleration, lens length, and power `TEMPERATURE` type was also missing, not only the new-ish `TIME_ABSOLUTE` one... Added a static assert on the size of the `bpyunits_ucategories_items` array, and a comment on anonymous enum of `B_UNIT_`, in the hope this won't happen again in the future.
2022-05-09Geometry Nodes: use .a_ prefix for anonymous attribute namesJacques Lucke
Ref T97452.
2022-05-06EEVEE: Refactor curve nodesOmar Emara
This patches rewrites the GPU shaders of curve nodes for easier future development. This is a non-functional change. The new code avoids code duplication by moving common code into BKE curve mapping functions. It also avoids ambiguous data embedding into the gradient vectors that are passed to vectors and reduces the size of uniforms uploaded to the shader by avoiding redundancies. This is needed in preparation for the viewport compositor, which will utilize and extend this implementation. Reviewed By: fclem Differential Revision: https://developer.blender.org/D14689
2022-05-06Cleanup: improve const correctness in material APIJacques Lucke
2022-05-06Fix: Handle default better in curves type count cacheHans Goudey
When the curve types array isn't allocated, the default type is Catmull Rom. Because the type counts are calculated eagerly, they must be in a valid state.
2022-05-05Curves: change default name of curves object to CurvesJacques Lucke
2022-05-05Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-05Cleanup: Move curve length field input to blenkernelHans Goudey
To use in the geometry module when the resample curves code is moved there (T97448).
2022-05-05File missing from 78fc5ea1c398f70d22cda72be33c105146c0d542Campbell Barton
2022-05-05Workaround T81065: Merge UV's when applying modifiersCampbell Barton
Support merging UV's that share the same vertex and are very close when applying modifiers. This is needed to prevent UV's becoming "detached" which can happen when applying the subdivision surface modifier. This regression was caused by [0] which removed selection threshold for nearby coordinates. While restoring the UV selection threshold could be done - some selection operations that walk around connected UV fans wouldn't behave in a deterministic way (such as select shortest path). There are also other cases where UV's may be compared without a threshold such as tangent calculation and exporters which have their own logic to handling UV's. Also resolves T86896, T89903. [0]: b88dd3b8e7b9c02ae08d4679bb427963c5d21250 Reviewed By: sergey Ref D14841
2022-05-05Cleanup: Further clarification and renaming of curve field inputsHans Goudey
Differentiate the total length of curves and the accumulated length at each control point.
2022-05-05Curves: control number of control points in new curvesJacques Lucke
Previously, the number of control points in a new curve was hardcoded. Differential Revision: https://developer.blender.org/D14857
2022-05-05Cleanup: sort cmake file listsCampbell Barton
2022-05-05Cleanup: use 'r_' prefix for return argumentsCampbell Barton
2022-05-04Merge remote-tracking branch 'origin/blender-v3.2-release'Kévin Dietrich
2022-05-04Fix T95527: wrong motion blur with rigid bodiesBrecht Van Lommel
This index is not meant for the point cache data array, it's already offset.
2022-05-04Nodes: Add general Combine/Separate Color nodesHallam Roberts
Inspired by D12936 and D12929, this patch adds general purpose "Combine Color" and "Separate Color" nodes to Geometry, Compositor, Shader and Texture nodes. - Within Geometry Nodes, it replaces the existing "Combine RGB" and "Separate RGB" nodes. - Within Compositor Nodes, it replaces the existing "Combine RGBA/HSVA/YCbCrA/YUVA" and "Separate RGBA/HSVA/YCbCrA/YUVA" nodes. - Within Texture Nodes, it replaces the existing "Combine RGBA" and "Separate RGBA" nodes. - Within Shader Nodes, it replaces the existing "Combine RGB/HSV" and "Separate RGB/HSV" nodes. Python addons have not been updated to the new nodes yet. **New shader code** In node_color.h, color.h and gpu_shader_material_color_util.glsl, missing methods hsl_to_rgb and rgb_to_hsl are added by directly converting existing C code. They always produce the same result. **Old code** As requested by T96219, old nodes still exist but are not displayed in the add menu. This means Python scripts can still create them as usual. Otherwise, versioning replaces the old nodes with the new nodes when opening .blend files. Differential Revision: https://developer.blender.org/D14034
2022-05-04Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-04Fix T97709: Compositor: Scenes are being set to no users after doing a full ↵Bastien Montagne
copy. Similar issue/solution as in rB5188c14718c5 from this Monday actually, there may be more of those still lurking around... Quite surprising they all get reported now, this behavior has been in Blender since years.
2022-05-04Silenced compilation warning on clang.Jeroen Bakker
2022-05-04Curves: Add method to find indices for curve type in a selectionHans Goudey
For example, this can be used to find the indices of all Bezier curves inside an existing selection. The important part is that it is optimized for the case when all curves have the same type.
2022-05-04Curves: Optimize filling all curves with a single typeHans Goudey
If all curves are selected for setting the new type, skip counting the types and just set it directly.
2022-05-04Merge branch 'blender-v3.2-release'Falk David
2022-05-04GPencil: Apply layer transforms to visible framesYann Lanthony
Fix regression described in T97799. Apply layer transform and layer parenting to all visible frames, i.e. active frame + onion skinning frames. Reviewed By: #grease_pencil, antoniov Maniphest Tasks: T97799 Differential Revision: https://developer.blender.org/D14829
2022-05-04Merge branch 'blender-v3.2-release'Hans Goudey
2022-05-04Fix T97831: Curve to mesh node can create invalid wire meshHans Goudey
When the profile only has one control point, its segment count was determined incorrectly. There needs to be a special case for a single control point, when there are no segments even if the curve is cyclic.
2022-05-04Curves: Use copied original data for invalid NURBS curvesHans Goudey
NURBS curves can be invalid when the order is less than the number of points, or in a few other situations. Currently the evaluated data of an invalid NURBS curve is empty. This is inconvenient because it requires checking for empty curves when it otherwise wouldn't be necessary. This patch replaces that fallback with copying the original data to the evaluated points. This makes conceptual sense too, as if the curve couldn't be evaluated-- which wouldn't necessarily delete it. Usually the UI protects against this happening, but it's currently possible to create an invalid curve with some operations like the delete geometry node. Differential Revision: https://developer.blender.org/D14837
2022-05-04Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-04Fix wrong task priority for particle distribution and tanget computationBrecht Van Lommel
These kinds of depsgraph evaluations should not be marked as low priority as this could negatively affect playback performance. Low priority should mainly be used for background tasks.
2022-05-03Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-03Fix T95541: Broken vertex weight with mirror modifier.Bastien Montagne
Regression from rB1a7757b0bc69/rBa0acb9bd0cc0. Special handling (averaging) of weights on merged center vertices also requires to be 'reversed' when new correct merge order is used, compared to previous behavior.
2022-05-03Fix T93272: Material index mapping missing for mesh boolean nodeHans Goudey
This commit implements copying of materials and material indices from all of the boolean node's input meshes. The materials are added to the final mesh in the order that they appear when looking through the materials of the input meshes in the same order of the multi-socket input node. All material remapping is done with mesh-level materials. Object-level materials are not considered, since the meshes don't come from objects. Merging all materials rather than just the materials on the first mesh requires a change to the boolean-mesh conversion. This subtly changes the behavior for object linked materials, but in a good way I think; now the material remap arrays are respected no matter the number of materials on the first mesh input. Differential Revision: https://developer.blender.org/D14788
2022-05-03Fix T97718: Crash using "Text on Curve"Hans Goudey
8e4c3c6a2414 mistakenly used the `vec` argument of `BKE_where_on_path` like it was optional. Fix by making that argument optional too.