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-12-10Added support for large images to openexr.Jeroen Bakker
2021-12-10Added support for large texture to OCIO.Jeroen Bakker
2021-12-10ImBuf: Use templating for IMB_transform.Jeroen Bakker
Reduce the inner loop of IMB_transform by extracting writing to an output buffer in a template. This reduces a branch in the inner loop and would allow different number of channels in the future.
2021-12-10Fix crash using 32k images.Jeroen Bakker
Use IMB_get_rect_len to solve overflow issues.
2021-12-10Cleanup: move public doc-strings into headers for various API'sCampbell Barton
Some doc-strings were skipped because of blank-lines between the doc-string and the symbol and needed to be moved manually. - Added space below non doc-string comments to make it clear these aren't comments for the symbols directly below them. - Use doxy sections for some headers. Ref T92709
2021-12-10Cleanup: move public doc-strings into headers for 'python/intern'Campbell Barton
Ref T92709
2021-12-10Cleanup: move public doc-strings into headers for 'nodes'Campbell Barton
Ref T92709
2021-12-10Cleanup: spelling in commentsCampbell Barton
2021-12-10Cleanup: doxygen comments for node_geo_dual_meshCampbell Barton
- Indent text after dot-points. - Use an unparsed code-block to display the text verbatim in doxygen.
2021-12-10Fix Crash: Loading Huge Images.Jeroen Bakker
When loading huge images (30k) blender crashed with a buffer overflow. The reason is that determine the length of a buffer was done in 32bit precision and afterwards stored in 64 bit precision. This patch adds a new function to do the correct calculation in 64bit. It should be added to other sections in blender as well. But that should be tested on a per case situation.
2021-12-10Fix T92036: `Magic Texture` in Volumetric World Shaders render differently ↵William Leeson
with the CPU and GPU When rendering volume surfaces in unbounded worlds the volume stepping can produce large values. If used with a magic texture node the values can results in a Inf float which when used in a sin or cos produces a NaN. To fix this the input values are mapped into the periodic range of the sin and cos functions (-2*PI 2*PI) this stops the possibility of a Inf occurring and thus the NaN. It also improves the accuracy and smoothness of the result due to loss of precision when large values are summed with smaller ones effectively removing the parts of the smaller number (i.e. those in the -2PI to 2PI range) that result in variation of the output of sin and cos. Reviewed By: brecht Maniphest Tasks: T92036 Differential Revision: https://developer.blender.org/D12821
2021-12-10Cleanup: move public doc-strings into headers for 'depsgraph'Campbell Barton
- Added space below non doc-string comments to make it clear these aren't comments for the symbols directly below them. - Use doxy sections for some headers. Ref T92709
2021-12-10Geometry Nodes: Remove unnecessary copy when replacing dataHans Goudey
In the `replace_mesh`/`replace_curve` etc. methods, the component was retrieved with write access. Retrieving with write access will duplicate the data if the component has another user. This means that the replaced geometry data was often duplicated just to be deleted a moment later. I expect this would have a large impact in performance in some specific situations when dealing with large geometry. In a scene with many small meshes though, I didn't observe a significant difference. This also makes replacing a geometry set's data with the same data that's already in the set safe. It would be valid to assert for that case instead, but this seems safer. Differential Revision: https://developer.blender.org/D13530
2021-12-10Fix T93687: Transform Gpencil vertices not working if scale is zeroGermano Cavalcante
Solution similar to rBd5cefc1844cf. Basically the problem occurs because `td->smtx` was set to zero matrix.
2021-12-09Cleanup: Return early in null checkHans Goudey
I'm planning to make these functions slightly more complicated, and it makes sense to return early when checking one of the parameters for null anyway.
2021-12-09Fix Cycles wrong adaptive sampling render when using sample offsetAndrii
Sample offset was not accounted for in the adaptive sampling code and caused issues, like immediately applied adaptive filtering, with non-zero values. Differential Revision: https://developer.blender.org/D13510
2021-12-09Cycles: support merging images rendered with adaptive samplingAndrii
This patch adds support for merging images rendered with adaptive sampling to the merge operator (which is currently only exposed in the Python API). To do this an sample count buffer is created for each render layer from the sample count pass if it exists, or from the metadata otherwise. This is then used for averaging passes. Differential Revision: https://developer.blender.org/D13457
2021-12-09Cleanup: use more modern C++ in Cycles merge operatorAndrii
Use structured binding and for-each loop, remove reduntant type casts, use find_if instead of loop. Differential Revision: https://developer.blender.org/D13456
2021-12-09Geometry Nodes: Scene Time NodeJohnny Matthews
This node outputs the current scene time in seconds or in frames. Use of this node eliminates the need to use drivers to control values in the node tree that are driven by the scene time. Frame is a float value to provide for subframe rendering for motion blur. Differential Revision: https://developer.blender.org/D13455
2021-12-09Fix T93498: Cycles fast GI add method affected by bounces settingsBrecht Van Lommel
This is only for the replace method.
2021-12-09Fix T93890: Cycles error with shadow catcher + OptiX denoise without passesBrecht Van Lommel
2021-12-09Fix T93874: Cycles crash with fast GI approximationBrecht Van Lommel
2021-12-09Fix T93871: Image.has_data returns True for images that failed to loadBrecht Van Lommel
2021-12-09Fix T93892: Changing bone name leaves non-functional vertex groupPhilipp Oeser
The corresponding vertex group was renamed properly, but the armature influence was broken for that bone. Caused by {rB3b6ee8cee708}. Since above commit, vertex group names are stored on object data (mesh/ lattice/gpencil) and if we update these, we have to inform dependency graph to have immediate effect. Maniphest Tasks: T93892 Differential Revision: https://developer.blender.org/D13526
2021-12-09Fix T93691: Crash when loading custom thumbnail in custom libraryJulian Eisel
This was an issue with the mixed list of external assets and assets from the current file. When closing the File Browser to select the custom preview image, the assets from the current file would be cleared for reread, to make sure we display up-to-date file data. That is because the workspace of the temporary File Browser was deleted, causing a change in the file data (main data-base). The reread would happen in a background thread, meaning it might not finish before the custom preview operator runs and queries the active asset. So the preview operator would get the wrong active asset from context. Two fixes were needed: * Make sure current file data is reread before the operator runs, by doing this partial rereading on the main thread. * Ensure the asset list (in fact file list) order stays consistent over rereads. If multiple assets with the same name were shown, the operator might also have gotten the wrong asset, also leading to a crash. Additionally the file operation handler should probably poll before executing, to fail gracefully at least (not crash).
2021-12-09Fix (unreported): missing null checkJacques Lucke
A crash happened when `instance_id_attribute` further down in the function was null. This issue was probably introduced when the id attribute starting using generic attribute handling.
2021-12-09Cleanup: move public doc-strings into headers for 'io/usd'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'io/alembic'Campbell Barton
Ref T92709
2021-12-09Cleanup: Various cleanups to the tree-view APIJulian Eisel
* Correct URL for documentation (was changed recently). * Add comments. * Reevaluate and update which functions are public, protected or private. * Reorder functions and classes to be more logical and readable. * Add helper class for the public item API so individual functions it uses can be made protected/private (the helper class is a friend). Also allows splitting API implementation from the C-API. * Move internal layout builder helper class to the source file, out of the header. * More consistent naming. * Add alias for item-container, so it's more clear how it can be used. * Use const. * Remove unnecessary forward declaration.
2021-12-09Cleanup/Documentation: Add/move comments for asset filesJulian Eisel
Adds some basic high-level explanations for editor/UI level asset APIs. Also moves one such comment from the source file to the header file, so it's in the same file as other API comments.
2021-12-09Cleanup: move public doc-strings into headers for 'io/collada'Campbell Barton
Ref T92709
2021-12-09Cleanup: use doxy section for itasc_pluginCampbell Barton
It wasn't obvious all callbacks were part of the plugin-API.
2021-12-09Cleanup: move public doc-strings into headers for 'functions'Campbell Barton
Ref T92709
2021-12-09Fix T93519: handle prefix names in autocompletesAzeem Bande-Ali
Autocomplete entires keep track of the length of the prefix in `name_prefix_offset`. However, the name matching logic was comparing the string including the prefix which resulted in tab-completion not working (when the user didn't also type in the prefix, typically two whitespaces). This is fixed by passing in a char pointer after the end of the prefix. Additionally, some searchbox logic is moved. Previously, `ui_searchbox_apply` would clear the entry which would mean that `ui_searchbox_find_index` would never succeed. Now the search box is only cleared if no match was found. Differential Revision: https://developer.blender.org/D13483
2021-12-09Cleanup: move public doc-strings into headers for 'freestyle'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'nodes/geometry'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'io/gpencil'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'geometry'Campbell Barton
Ref T92709
2021-12-09Cleanup: spelling in commentsCampbell Barton
2021-12-09Cleanup: move public doc-strings into headers for 'gpencil_modifiers'Campbell Barton
Removed doc-strings for operator definitions as they didn't provide useful information in addition to the operators own description. Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'compositor'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'gpu'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'imbuf'Campbell Barton
Ref T92709
2021-12-09Cleanup: move public doc-strings into headers for 'blenlib'Campbell Barton
- Added space below non doc-string comments to make it clear these aren't comments for the symbols directly below them. - Use doxy sections for some headers. - Minor improvements to doc-strings. Ref T92709
2021-12-09Cycles-X: Add hysteresis to resolution divider algorithmAlaska
Adds hysteresis to the resolution divider algorithm to avoid having the resolution bounce around when on the boundary of two resolutions. Reviewed By: brecht, leesonw Differential Revision: https://developer.blender.org/D12385
2021-12-09Fix incorrect copying of XR action map itemsPeter Kim
After using MEM_dupallocN() on the original item, the bindings ListBase for the new item needs to be cleared and each binding copied separately.
2021-12-09Cleanup: Remove empty node button layout functionAaron Carlisle
Was unused since the first commit: rB658b4c0d56dffbcf1476c2a2a019fa0ecfb79376
2021-12-09Fix T93869: snap cursor may fail in orthographic viewGermano Cavalcante
Float precision issues cause the `ED_view3d_win_to_3d_on_plane` to return a value even when the view ray is parallel to the plane. A more general solution might be desired in this case, as other areas that use `ED_view3d_win_to_3d_on_plane` might have the same problem. For now, just work around the problem for the snap cursor.
2021-12-09Fix T93523: Memory leak in Menu SearchErik
Fixes a memory leak introduced by D13225. Caused by not freeing the hash-map in some cases. Differential Revision: https://developer.blender.org/D13432
2021-12-09Fix T93858: Zstd-compressed .blend files from external tools aren't recognizedLukas Stockner
The issue here was that after the seek table check, the underlying file wasn't rewound to the start, so the code that checks for the BLENDER header immediately reaches EOF and fails. Since Blender always writes files with a seek table, this bug isn't triggered by files saved in Blender itself. However, files compressed in external tools generally don't have a seek table.