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
path: root/source
AgeCommit message (Collapse)Author
2022-07-29Merge branch 'blender-v3.3-release'Bastien Montagne
2022-07-29Fix (unreported) lib-linking of ID properties not taking library parameter.Bastien Montagne
While this was not a critical issue (that lib pointer is only used for some kind of sanity check that no linked data uses local ID pointers), better to keep `IDP_BlendReadLib` in sync with all other lib-linking code.
2022-07-29Realtime Compositor: Add needed GPU module changesOmar Emara
This patch implements the necessary changes to the GPU module that are needed by the realtime compositor. A new function GPU_material_from_callbacks was added to construct a GPU material from a number of callbacks. A callback to construct the material graph by adding and linking the necessary GPU material nodes. And the existing code generator callback. This essentially allows the construction of GPU materials independent of node trees and without the need to do any node tree localization. A new composite source output to the code generator was added. This output contains the serialization of nodes that are tagged with GPU_NODE_TAG_COMPOSITOR, which are the nodes linked to the newly added composite output links. Two new GPU uniform setters were added for int2 and matrix3 types. Shader create info now supports generated compute sources. Shaders starting with gpu_shader_compositor are now considered part of the shader library. Additionally, two fixes were implemented. First, GPU setter node de-duplication now appropriately increments the reference count of the references resources. Second, unlinked sockets now get their value from their associated GPU node stack instead of the socket itself. Differential Revision: https://developer.blender.org/D14690 Reviewed By: Clement
2022-07-29Render: Propagate view updates to draw enginesOmar Emara
Currently, draw engines are not notified of view updates if a render engine is active and was updated. It is unclear why this is the case currently, but this behavior was part of the initial commit. This patch propagates view updates regardless if the update was handled by an active render engine. This is needed by the realtime compositor as it implements logic for view updates, which currently does not execute if Cycles is rendering for instance. Differential Revision: https://developer.blender.org/D15207 Reviewed By: Brecht
2022-07-29Cleanup: quiet warnings in recent BLF and rna_ui changesCampbell Barton
2022-07-29BLF: New Font Stack for Better Language CoverageHarley Acheson
Replace our existing two fonts with a stack of new fonts to increase and improve language coverage and to add many new symbols and icons. Covers glyphs of top 44 languages - 1.5 billion more potential users. See D10887 for lots of details. Differential Revision: https://developer.blender.org/D10887 Reviewed by Brecht Van Lommel
2022-07-29BLF: Fonts with FT_Face OptionalHarley Acheson
Allow FontBLFs to exist with NULL FT_Face, added only when actually needed. Speeds up startup and unused fonts are not loaded. See D15258 for more details. Differential Revision: https://developer.blender.org/D15258 Reviewed by Brecht Van Lommel
2022-07-29BLF: Don't Print Empty StringsHarley Acheson
Optimize font drawing by skipping empty strings. See D15472 for more details. Differential Revision: https://developer.blender.org/D15472 Reviewed by Campbell Barton
2022-07-29Merge branch 'blender-v3.3-release'Hans Goudey
2022-07-29Fix T99761: Curves sculpt mode crash with empty curvesHans Goudey
The virtual arrays may be null if the curves are empty, it's simple to just skip the domain interpolation completely.
2022-07-29Fix set iterator test failure on macOSJulian Eisel
This is a quite interesting case, where two arguments to a function are evaluated in different order on Apple Clang than on GCC and I guess MSVC. Left a comment on that.
2022-07-29Cleanup: Nodes: Store node group idname in tree typeHans Goudey
There was already a utility to retrieve the correct node group idname from the context, `node_group_idname`, but often it's clearer to use lower-level arguments, or the context isn't accessible. Storing the group idname in the tree type makes it accessible without rewriting it elsewhere.
2022-07-29Cleanup: Make BKE_idprop.h self sufficientHans Goudey
It relied on uint, which is defined in a separate header.
2022-07-29Merge branch 'blender-v3.3-release'Hans Goudey
2022-07-29Fix: Grammar mistake in info messageHans Goudey
2022-07-29Cleanup: Use LISTBASE_FOREACH macroHans Goudey
2022-07-29Cleanup: Use const context argument for UIList callbacksHans Goudey
2022-07-28Cleanup: Use new IDProperty creation API for geometry ndoes modifierHans Goudey
Use the API from 36068487d076bfd8 instead of the uglier `IDPropertyTemplate` API.
2022-07-28Merge branch 'blender-v3.3-release'Brecht Van Lommel
2022-07-28Revert "Fix T98773: GPU Subdivision breaks auto selection in UV edit mode"Brecht Van Lommel
This reverts commit e2c02655c78b2c669468ae568ddf4b17953cc98d. It was already reverted in the 3.2 branch, as it caused more serious issues than it solved. Fixes T99805, T99323, T99296.
2022-07-28Fix wrong post-increment operators & test for BLI containersJulian Eisel
2022-07-28Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-07-28ID namemap: fix missing removal of old name in do_versions_rename_idAras Pranckevicius
Was causing an assert that the old name exists in the name map, but is not present in the actual database. Reported in #blender-coders
2022-07-28Merge branch 'blender-v3.3-release'Germano Cavalcante
2022-07-28PyDoc: fix 2D builtin shaders documentationGermano Cavalcante
2D shaders require the `vec2` attribute for "pos" (not `vec3`)
2022-07-28EEVEE-Next: UI: Make Vector pass greyed out when motion blur is enabledClément Foucault
Also clears the render result to 0 to avoid invalid motion vectors.
2022-07-28EEVEE-Next: Cleanup: Isolate render result readback and prototype progressClément Foucault
Still not working but the idea is to read the result and display the first image sample so that user has a better feedback of the rendering.
2022-07-28EEVEE-Next: Motion Blur new implementationClément Foucault
The new implementation leverage compute shaders to reduce the number of passes and complexity. The max blur amount is now detected automatically, replacing the property in the render panel by a simple checkbox. The dilation algorithm has also been rewritten from scratch into a 1 pass algorithm that does the dilation more efficiently and more precisely. Some differences with the old implementation can be observed in areas with complex motion.
2022-07-28DRW: TextureFromPool: Change API to use acquire / releaseClément Foucault
This removes the quirk of having to call the sync function for each new render loop. # Conflicts: # source/blender/draw/engines/eevee_next/eevee_view.cc
2022-07-28EEVEE-Next: Fix Vector render passClément Foucault
2022-07-28Merge branch 'blender-v3.3-release'Bastien Montagne
2022-07-28Cleanup/refactor: Readfile: Add dedicated function to insert ID pointers in ↵Bastien Montagne
libmap. New `oldnewmap_lib_insert` does nothing special, it just wraps around existing `oldnewmap_insert`, but it's the logical counter part of `oldnewmap_liblookup`. It also helps tremendously when debuging complex ID pointers issues in readfile.c code.
2022-07-28Fix (studio-reported) crash in some rare cases in blendfile read code.Bastien Montagne
Crash would happen when a linked ID would become missing, that was 'pre-declared' and used only once as a 'weak link' in another library stored before the one it came from. In that case, the place-holder generated in read code would be freed in `read_library_clear_weak_links`, when handling its 'owner' library, but since all previous libraries in the list had already been 'lib_linked' and their filedata (and related libmap) freed, the update of the libmaps in `read_library_clear_weak_links` would not apply to data from those previous libraries, leading to ID pointers there pointing to freed memory. This fix should also be backported to 2.93.
2022-07-28Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-07-28Fix T100017: OBJ: new importer does not import vertices that aren't part of ↵Aras Pranckevicius
any face The Python based importer had a special case handling of "no faces in the whole file at all", where it ended up treating the whole file as essentially a point-cloud-like object (just loose vertices, no faces or edges). The new importer code was missing this special case. Fixes T100017. Added gtest coverage that was failing without the fix.
2022-07-28Geometry Nodes: add assert to check if node supports lazynessIliay Katueshenock
Only nodes supporting lazyness can mark inputs as unused. For other nodes, this is done automatically of all outputs are unused. Differential Revision: https://developer.blender.org/D15409
2022-07-28Cleanup: Fix typo in commentJulian Eisel
2022-07-28Merge branch 'blender-v3.3-release'Jacques Lucke
2022-07-28Curves: enable density brush when first entering curves sculpt modeJacques Lucke
Previously, no tool was selected, which was a bug.
2022-07-28Curves: improve handling of empty surface meshesJacques Lucke
2022-07-28Cleanup: quiet GCC stringop-overflow warningCampbell Barton
2022-07-28Cleanup: unused headerCampbell Barton
2022-07-28BLI_math: improve symmetrical values from sin_cos_from_fractionCampbell Barton
When plotting equally distant points around a circle support an extra axis of symmetry so twice as many exact values are repeated than originally added in [0], see code-comments for a detailed explanation. Tests to ensure accuracy and exact symmetry have been added too. Follow up on fix for T87779. [0]: 087f27a52f7857887e90754d87a7a73715ebc3fb
2022-07-28BLI_math: improve symmetrical values from sin_cos_from_fractionCampbell Barton
When plotting equally distant points around a circle support an extra axis of symmetry so twice as many exact values are repeated than originally added in [0], see code-comments for a detailed explanation. Tests to ensure accuracy and exact symmetry have been added too. Follow up on fix for T87779. [0]: 087f27a52f7857887e90754d87a7a73715ebc3fb
2022-07-27Curves: Avoid virtual function overhead when finding selected curvesHans Goudey
This showed up on a profile of sculpting with the comb brush. Use a span instead of a virtual array.
2022-07-27Merge branch 'blender-v3.3-release'Brecht Van Lommel
2022-07-27Curves: Bring back parallel copying of curve and point attributesHans Goudey
This was removed in cacdea7f4a5b49d to fix a bug, but copying point and curve attributes should be fine as long as the attribute arrays are retrieved before-hand. Differential Revision: https://developer.blender.org/D15541
2022-07-27Fix: curves edit hints not propagated in Join Geometry nodeJacques Lucke
Found while investigating why crazy-space editing didn't work in T100026.
2022-07-27Fix T100026: crash with zero-sized attributesJacques Lucke
The problem was that zero-sized and non-existant attributes were handled the same in some parts of the attribute API, which led to unexpected behavior. The solution is to properly differentiate the case when an attribute does not exist and when it is just empty (because the geometry is empty). Differential Revision: https://developer.blender.org/D15557
2022-07-27Merge branch 'blender-v3.3-release'Jacques Lucke