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-09-22Fix T91590: Cycles specular baking not using smooth normalBrecht Van Lommel
2021-09-22Fix T91600: Cycles viewport not updaing on metaball changesBrecht Van Lommel
2021-09-22Fix T91597: Cycles volume scatter visibility on lights not workingBrecht Van Lommel
2021-09-22GPencil: Split Weight modifier in two to make more consistentAntonio Vazquez
The old modifier had two modes, but it is better to keep separated as meshes. The UI has changed to be more consistent, including a new column type of modifiers. Note: The logic has not changed with the previous version of the modifier, just is a split on two modifiers.. Reviewed By: mendio, pablovazquez Differential Revision: https://developer.blender.org/D12586
2021-09-22Fix missing samples count pass when using tilesSergey Sharybin
Samples count pass is normalized to the overall number of samples. This means that we need to store actual value of the samples in the tile buffer file. A bit annoying to pull all those settings to BufferParams and need to find a more generic solution, but for now this is easiest and a quickest solution. Differential Revision: https://developer.blender.org/D12597
2021-09-22Animation: Pose Slide Operator - Blend to NeighbourChristoph Lendenfeld
Adds a new operator to the pose slider tools that blends the current pose with the neighbouring poses in the timeline. The operator can be called in pose mode with Shift+Alt+E or from the "pose" menu under "In betweens/Blend to Neighbour" Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9137#inline-105214 Ref: D9137
2021-09-22Cleanup: pep8 for the default keymapCampbell Barton
Mainly line lengths & indentation.
2021-09-22Keymap: support use_key_activate_tools for annotateCampbell Barton
2021-09-22Fix (unreported) crash in outliner after recent changes to ID management ↵Bastien Montagne
core code. Outliner tree building code abuse the `ID.newid` pointer to store non-ID data. While this is bad and should be fixed at some point, for the time being at the very least do not use ID BKE API to deal with this pointer in that specific case, this needs its own proper code.
2021-09-22Fix bad image drawing during rendering on certain GPUsSergey Sharybin
Reported by Thomas DInges: the default cube render in Cycles has jagged edges during rendering. Happens on AMD Radeon RX 5500 XT. Force linear interpolation at zoom level 1 and less. Reviewed by @fclem
2021-09-22Revert "Make knife drawing anti aliased (Monkey work based on D11333)"Jeroen Bakker
This reverts commit 96027b2d15b73d2b5086899425021ea4c903fa00. The patch asserts on different occasions and needs more work.
2021-09-22Custom Properties: fix the tooltip field not initialized in edit dialog.Alexander Gavrilov
Initializing the description property was completely forgotten. It also seems it may be missing sometimes, so use `get`. Also, clean values when there is no data, and correctly use the return value of `get_value_eval` in one instance.
2021-09-22Keymap: set the default filepath exporting keymapsCampbell Barton
Use the key-config name for the file name.
2021-09-22Fix crash duplicating sequencer areaCampbell Barton
Error in 997b5fe45dab8bd0e2976c8b673e56266134fc80.
2021-09-22Cleanup: use template for hide/reveal keymap itemsCampbell Barton
2021-09-22Keymap: support use_key_activate_tools for selection toolsCampbell Barton
Also support sequencer transform tools.
2021-09-22Keymap: add fallback keymap for sequencer toolsCampbell Barton
This quiets error messages, fall-back tool preference needs to be further developed.
2021-09-22Blender Libraries: Add JSON Library.Jeroen Bakker
Several areas within blender can benefit a JSON reader/writer library. Areas like the asset browser, XR and grease pencil. After looking at the available options we selected nlohmann's JSON for modern C++ library. It is actively maintained for over 10 years and flexible. This patch only adds the header only implementation of the library so it can be used by different areas. The asset browser project is planning to add a small abstraction layer so it will be easier to switch between several different serialization formats. This is currently in development in D12544. In cases the abstraction layer can be an overhead and undesired to be used. In this case the header file can be directly included. Reviewed By: Severin Maniphest Tasks: T91430 Differential Revision: https://developer.blender.org/D12567
2021-09-22EEVEE fix gloss low roughness errorJake
Up lower clamp on spec_angle to prevent NaN from being generated on intel GPUs at low roughness. Fixes T88754 Reviewed By: fclem Maniphest Tasks: T88754 Differential Revision: https://developer.blender.org/D12508
2021-09-22Extern: Add TinyGLTF to load XR controller modelPeter Kim
The XR_MSFT_controller_model OpenXR extension provides a glTF controller model that can be displayed to users during a VR session. There are plans to support this in D10948, which will greatly improve VR immersion when using a compatible OpenXR runtime. TinyGLTF (https://github.com/syoyo/tinygltf) was agreed upon as a simple and sufficient solution for loading this glTF controller model, which will be performed at the GHOST abstraction layer. Although by default it has two additional dependencies, stb and json, stb can be excluded by defining TINYGLTF_NO_STB_IMAGE and TINYGLTF_NO_STB_IMAGE_WRITE whereas json will be added as a separate extern lib in D12567. Reviewed By: Severin Differential Revision: https://developer.blender.org/D12344
2021-09-22Cleanup: spelling in commentsCampbell Barton
2021-09-22Cleanup: incompatible-pointer-types warningCampbell Barton
2021-09-22Geometry Nodes: Curve Parameter NodeHans Goudey
This commit adds a field input node that outputs the fraction of the total length of the spline on each control point. This is useful for anything that involves varying a value depending on how far along the spline it is. It also works when evaluated on the spline domain, where it outputs the fraction of the total length of all of the splines at the start. The operation isn't as well defined for NURB splines for the reasons noted in the code comment. That can be said explicitly in the docs. Differential Revision: https://developer.blender.org/D12548
2021-09-22Geometry Nodes: Add legacy warning and "View Legacy" operatorHans Goudey
This commit adds warning messages to "legacy" nodes that will be removed in the future. The warning is shown in the node header, but it is not printed in the terminal or displayed in the modifier. It is also not propogated to node groups, but that is a more general task. If the modifier's node tree has executed a deprecated node, it will display a warning and a "Search" button that will select the nodes and pan to them in the node editor. This doesn't open child node trees and select nodes in there, because I want to keep this operator simple and avoid wasting a lot of time perfecting this behavior. Differential Revision: https://developer.blender.org/D12454
2021-09-21Audaspace: porting upstream pulseaudio fixes.Jörg Müller
Fixes T89045 and T91057.
2021-09-21UUIDs: rename UUID to bUUIDSybren A. Stüvel
Rename the `UUID` struct to `bUUID`. This avoids a symbol clash on Windows, which also defines `UUID`. This only pops up when a `UUID` field is used in the DNA code, which is why it wasn't a problem before (it will be once D12589 lands). No functional changes.
2021-09-21Geometry Nodes: Fill instances separately in the curve fill nodeHans Goudey
With this commit, each referenced instance data will be converted to a geometry instances and processed separately. This should result in a large speedup when the instances component has many insances referring to the same data. This change can act as a blueprint for other nodes that need to implement similar behavior. It adds some helper functions on the instances component to make that easier. Thanks to Erik Abrahamsson for a proof of concept patch. Differential Revision: https://developer.blender.org/D12572
2021-09-21Geometry Nodes: String manipulation nodesErik Abrahamsson
This patch adds four new nodes to a new "Text" category: - String Length: Outputs length of a string - String Substring: Outputs part of a string - Value to String: Converts a value to a string - String Join: Concatenates multiple strings with a delimiter The initial use case of these nodes is the upcoming string to curve node. However, they could also be used to calculate dynamic attribute names, or with string attributes in the future. Differential Revision: https://developer.blender.org/D12532
2021-09-21Geometry nodes: Output curve normals from the normal nodeHans Goudey
The code is basically the same as rB4d51af68adb273.
2021-09-21Geometry Nodes: Curve tangent nodeHans Goudey
This node outputs the direction vector, or tangent of a curve at every control point. For poly splines this is simply the evaluated tangents, so it all works very simply. For Bezier splines it uses the tangent at the evaluated point corresponding to each control point, and NURBS are interpereted as poly splines built from their control points. Internally the node is called "Input Tangent" to simplify using it for mesh tangents as well in the future like the "Normal" node. Differential Revision: https://developer.blender.org/D12581
2021-09-21Cleanup: Clang-tidy warningsRichard Antalik
2021-09-21UI: Style drag-drop indicators as tooltipsPablo Vazquez
Currently, the drop indicator colors are hardcoded to white text on semi-transparent black background. This patch makes the drop indicator use the tooltip theme settings, as they serve a similar purpose. {F10530482, size=full} All built-in themes seem to work well and got improved readability. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D12588
2021-09-21Fix: Add versioning for geometry nodes attribute input toggleHans Goudey
rB8e21d528cab98 neglected to add versioning to add the new "use_attribute" and "attribute_name" properties to the modifier input list. Though they are added if the modifier's interface is updated, that doesn't happen when the file is loaded, so patch adds them manually. Another solution would be calling `MOD_nodes_update_interface`, but that would require including the modifiers module. Differential Revision: https://developer.blender.org/D12535
2021-09-21Cleanup: Move curve to mesh node implementation to blenkernelHans Goudey
I plan to use this for curve object data conversion to mesh in D12533, and possibly for the implicit curve to mesh conversion in the curve and text object modifier stack in the future. Differential Revision: https://developer.blender.org/D12585
2021-09-21Fix: Incorrect versioning for float IDProperty default arrayHans Goudey
The versioning has to have different behavior for when the old default value had a float type rather than a double type. Also use memcpy rather than dupalloc, since it's a bit clearer.
2021-09-21Cleanup: else-after-returnJacques Lucke
2021-09-21Functions: make asserts more correctJacques Lucke
It is valid to e.g. copy construct an integer in the same place, because it is a trivial type. It does not work for types like std::string. This fixes a crash reported in D12584 where it would copy a buffer into itself. We should probably also avoid doing this copy alltogether but that can be done separately.
2021-09-21Cleanup: mention `UUID_STRING_LEN` in commentSybren A. Stüvel
Mention that `UUID_STRING_LEN` exists in the documentation of `BLI_uuid_format()`. No functional changes.
2021-09-21Fix T91534: GPencil interpolate Sequence fails if stroke has 0 pointsAntonio Vazquez
In some cases the stroke has 0 points and this must be skipped in the interpolation.
2021-09-21GPencil: Curvature support for length modifierHenrik Dick (weasel)
Extend the stroke following an approximated circluar/helical curve. This can be used as an effect for lineart or on its own as helix generator. Reviewed By: Sebastian Parborg (zeddb), Hans Goudey (HooglyBoogly), YimingWu (NicksBest), Antonio Vazquez (antoniov), Henrik Dick (weasel) Differential Revision: https://developer.blender.org/D11668 # 请为您的变更输入提交说明。以 '#' 开始的行将被忽略,而一个空的提交 # 说明将会终止提交。 # # 位于分支 master # 您的分支与上游分支 'origin/master' 一致。 # # 要提交的变更: # 修改: source/blender/blenkernel/BKE_gpencil_geom.h # 修改: source/blender/blenkernel/intern/gpencil_geom.cc # 修改: source/blender/gpencil_modifiers/intern/MOD_gpencillength.c # 修改: source/blender/makesdna/DNA_gpencil_modifier_defaults.h # 修改: source/blender/makesdna/DNA_gpencil_modifier_types.h # 修改: source/blender/makesrna/intern/rna_gpencil_modifier.c #
2021-09-21Fix T87801: Eevee ambient occlusion is incorrect on M1 macMiniClément Foucault
The issue was caused by `textureSize()` returning the size of the level 0 even when the min texture level is higher than 0. Using a uniform to pass the correct size fixes the issue. This issue also affected the downsampling of radiance for reflections and refractions. This does not affect anything other than the recusive downsampling shaders.
2021-09-21Fix T91458: Displaying dope-sheet with sequencer keyframes crashesCampbell Barton
Error in e6194e735791b42feb51e810a4910a41d999d3bf.
2021-09-21Cleanup ClangTidy warning.Bastien Montagne
Different parameter name in function declaration and implementation.
2021-09-21Make knife drawing anti aliased (Monkey work based on D11333)Urko
Knife tool. Make the drawing anti aliased and consistent by using 3D_POLYLINE/3D_POINT shaders, and making sure alpha blending is on. Monkey work based on [[ https://developer.blender.org/D11333 | D11333 ]] done by [[ https://developer.blender.org/p/krash/ | Anthony Edlin (krash)]] Reviewed By: jbakker Differential Revision: https://developer.blender.org/D12287
2021-09-21Cycles: merge of cycles-x branch, a major update to the rendererBrecht Van Lommel
This includes much improved GPU rendering performance, viewport interactivity, new shadow catcher, revamped sampling settings, subsurface scattering anisotropy, new GPU volume sampling, improved PMJ sampling pattern, and more. Some features have also been removed or changed, breaking backwards compatibility. Including the removal of the OpenCL backend, for which alternatives are under development. Release notes and code docs: https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles https://wiki.blender.org/wiki/Source/Render/Cycles Credits: * Sergey Sharybin * Brecht Van Lommel * Patrick Mours (OptiX backend) * Christophe Hery (subsurface scattering anisotropy) * William Leeson (PMJ sampling pattern) * Alaska (various fixes and tweaks) * Thomas Dinges (various fixes) For the full commit history, see the cycles-x branch. This squashes together all the changes since intermediate changes would often fail building or tests. Ref T87839, T87837, T87836 Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-21Fix script_load_keymap failure from c9d9bfa84ad5cb985e3feccffa702b2f3cc2adf8Campbell Barton
Scanning the keymap hierarchy (used in the preferences), caused the test to fail. Don't attempt add fallback keymaps for dynamic keymap callbacks.
2021-09-21Cleanup: Silence unused variable warningJulian Eisel
2021-09-21VSE strip thumbnailsAditya Y Jeppu
Draw thumbnails as strip overlay. This works for movie and image strips. To draw thumbnails, this overlay has to be enabled and strips must be tall enough. The thumbnails are loaded from source file using separate thread and stored in cache. Drawing code uses only images stored in cache, and if any is missing, background rendering job is started. If job can not render thumbnail, to prevent endless loop of creating job for missing image it sets `SEQ_FLAG_SKIP_THUMBNAILS` bit of `Sequence` flag. To prevent visual glitches during timeline panning and zooming, `View2D` flag `V2D_IS_NAVIGATING` is implemented. If bit is set, drawing code will look for set of evenly distributed thumbnails that should be guaranteed to exist and also set of previously displayed thumbnails. Due to volatile nature of cache these thumbnails can be missing anyway, in which case no new thumbnails will be drawn for particular strip. Cache capacity is limited to 5000 thumbnails and performs cleanup of non visible images when limit is reached. ref T89143 Reviewed By: ISS Differential Revision: https://developer.blender.org/D12266
2021-09-21VSE: Image transform toolsRichard Antalik
Add tools for image manipulation in sequencer preview region. This includes: - Translate, rotate and resize operators, tools and gizmos - Origin for image transformation - Median point and individual origins pivot modes - Select and Box select operator works in preview - Image overlay drawing ref T90156 Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D12105
2021-09-21LibOverride: make `view_layer` API parameter optional.Bastien Montagne
This is used to find a valid collection in which to instantiate stray objects and collections. In some cases there will be no such active view layer, in which case we can consider using the Scene's master collections children hierarchy instead to find a valid instantiated parent collection for those stray data.