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
2020-11-11Cleanup: use bool for imbuf save callbacksCampbell Barton
2020-11-11Cleanup: avoid boolean literals for functions that return intCampbell Barton
2020-11-11Cleanup: use define for targa header sizeCampbell Barton
2020-11-11Cleanup: remove redundant NULL checks in ImFileType.is_a callbackCampbell Barton
Most of these callbacks don't do a NULL check, so there is no need to do this for bmp/png. Also correct radiance_hdr comments.
2020-11-11Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-11ImBuf: replace incorrect strstr use with memcmpCampbell Barton
Besides being incorrect as only the first two bytes should be tested, searching binary data using `strstr` can easily read past buffer bounds.
2020-11-11Merge branch 'blender-v2.91-release'Nathan Craddock
2020-11-11Fix: Selection not possible from outliner gutterNathan Craddock
Selection should be possible from the left gutter in object mode. When in other modes the mode column displays icon buttons which should be prioritized for selection only in those modes. Introduced in rB2110af20f5e6.
2020-11-11Cleanup: clang-formatCampbell Barton
2020-11-11Cleanup: use preprocessor version check for PyTypeObject declarationCampbell Barton
While `tp_print` was deprecated, Python 3.8+ uses this for 'tp_vectorcall_offset' which wasn't stated in the comment from efd71aad4f22ec0073d80b8dd296015d3f395aa8. Instead of suppressing clang-tidy, use preprocessor a check since this properly represents the difference between Python versions.
2020-11-10Windows: Fix build issue with VCPKGRay Molenkamp
For blender we disable VCPKG to prevent it from picking up the wrong libraries from VCPKG rather than our lib folder some of the cycles tests needed this to link correctly. reported by @alef on chat
2020-11-10Cycles: fix compilation of OSL shaders following API changeKévin Dietrich
The names of the parameters are based on those of those of the sockets, so they also need to be updated. This was forgotten about in the previous commit (rBa284e559b90e). Ref T82561.
2020-11-10Fix NanoVDB compile errors with recent NanoVDB versionsPatrick Mours
There were some changes to the NanoVDB API that broke the way Cycles was previously using it. With these changes it compiles successfully again and also still compiles with the NanoVDB revision that is currently part of the Blender dependencies. Ref T81454.
2020-11-10Fix (unreported) potential assert in viewlayer synchronization.Bastien Montagne
Some operations, like remapping and ID (Object) to another, can lead to having the same object in more than one base. While this is not a valid state, this is being taken care of by the `BKE_layer_collection_sync` call, so the object-to-base GHash generation itself should be resilient to such issue. Note: another way to fix this would be to make remapping post-process code check explicitely for such doublons, but I would rather avoid adding even more 'specialized' code there, it already has to deal with too many of those corner cases.
2020-11-10MSVC: Fix build warningRay Molenkamp
If a define of NOMINMAX was made before BLI_task.hh was included, the compiler would emit a warning C4005: 'NOMINMAX': macro redefinition warning, to work around this only define it if it is not already defined, and only undefine it if we were the ones that made the define earlier.
2020-11-10Cycles: Enable NanoVDB usage by defaultPatrick Mours
As discussed during the Rendering Metting. Ref T81454.
2020-11-10Fix T81951: Add Cube new tool surface snaping not workingGermano Cavalcante
For the `plane_depth` of type `PLACE_DEPTH_SURFACE` to take effect, a `snap_context` is needed. But, even if a temporary `snap_context` was created for `plane_orient == PLACE_ORIENT_SURFACE`, this context was not used for `plane_depth`. So, use a temporary `snap_context` for `PLACE_DEPTH_SURFACE` (as it is done for `PLACE_ORIENT_SURFACE`). Differential Revision: https://developer.blender.org/D9345 Differential Revision: https://developer.blender.org/D9435
2020-11-10LibOverride: Optimize deletion of overrides in liboverride delete.Bastien Montagne
2020-11-10Cleanup/Update comments in liboverride code.Bastien Montagne
2020-11-10Fix T82561: shader compilation crashes in OSLKévin Dietrich
The "type" sockets on shader nodes were renamed in rB31a620b9420cab to avoid clashes with the `NodeType type` member from the Node base class, but the OSL shader compilation was missing those changes.
2020-11-10Animation: Expand unit tests for `BKE_fcurve_active_keyframe_index()`Sybren A. Stüvel
Expand unit test for `BKE_fcurve_active_keyframe_index()` to test edge cases better. This also introduces a new test macro `EXPECT_BLI_ASSERT()`, which can be used to test that an assertion fails successfully. No functional changes to actual Blender code.
2020-11-10Multires: Cleanup, clarify commentSergey Sharybin
2020-11-10Cleanup/Update comments in liboverride code.Bastien Montagne
2020-11-10install_deps: fix a typo in argument handling of new nanovdb option.Bastien Montagne
Spotted by Patrick Mours (@pmoursnv), thanks!
2020-11-10Merge remote-tracking branch 'origin/blender-v2.91-release'Sybren A. Stüvel
2020-11-10Animation: More explicit boundary checks when setting active keyframeSybren A. Stüvel
Fix unit test failing in debug mode by having more explicit boundary checks when setting an FCurve's active keyframe. No functional changes.
2020-11-10ImBuf: support detecting the file format from in-memory imagesCampbell Barton
Add `IMB_ispic_type_from_memory` so we can detect the file format of in-memory images. This removes `is_a_filepath` callback and uses a magic check for photo-shop files that's compatible with OIIO. Even though OIIO doesn't support packed images, we can still use the file magic for detecting the format. This change allows D9500 (a fix for unpacking images), to be implemented without a significant performance penalty, although the actual performance cost would depend heavily on the blend file. Reviewed By: dfelinto, sergey Ref D9517
2020-11-10Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-10Fix T82540: Smart UV project ignores seamsCampbell Barton
Functionality was lost in the Python to C conversion from 850234c1b10a828678f1b91001f2731db807f7e2
2020-11-10Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-10Fix T82555: Crash using copied object from PythonCampbell Barton
Also clear `gpd_eval` as this wasn't being copied either.
2020-11-10Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-10Fix T65585: Knife fails when cursor away from the objectCampbell Barton
Zeroed mouse coordinates were being used making projection fail.
2020-11-10Cleanup: remove hard coded file format check in IMB_ispic_typeCampbell Barton
This is already being checked in the 'is_a' callback.
2020-11-10Cleanup: clang-formatCampbell Barton
2020-11-10Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_printCampbell Barton
Clang-tidy behavior changes from Python 3.7 to 3.8+ so it's simplest to suppress the warning in this instance.
2020-11-10Cleanup: suppress clang-tidy warnings without FFMPEG/AVI/AUDASPACECampbell Barton
2020-11-09Merge branch 'blender-v2.91-release'Pablo Dobarro
2020-11-09Fix assert in the sculpt pen tilt codePablo Dobarro
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9422
2020-11-09Fix wrong DNA flag for hide face setsPablo Dobarro
It was using the same flag as SCULPT_DYNTOPO_DETAIL_MANUAL Reviewed By: sergey Differential Revision: https://developer.blender.org/D9484
2020-11-09install_deps: add support for NanoVDB.Bastien Montagne
re T81454.
2020-11-09Install_deps: update URLS for OpenVDB repo/sources.Bastien Montagne
2020-11-09Merge branch 'blender-v2.91-release'Brecht Van Lommel
2020-11-09Fix T78028: crash with grease pencil and save buffersBrecht Van Lommel
Perform grease pencil rendering delayed in this case, as there are no render buffers available for compositing. This keeps memory usage lower, but does involve multiple depsgraph evaluation. This seems in line with the intent of the save buffers feature, to use minimal memory.
2020-11-09Fix potential crash closing Blender with persistent data option enabledBrecht Van Lommel
Found by address sanitizer.
2020-11-09Merge branch 'blender-v2.91-release'Brecht Van Lommel
2020-11-09Fix T78956: banding artifacts of vertex colors in CyclesBrecht Van Lommel
Byte colors must be encoded in sRGB and converted to linear on lookup, to avoid precision loss.
2020-11-09Cleanup: Clang-tidy, inconsistent parameter nameAnkit Meel
readability-inconsistent-declaration-parameter-name
2020-11-09Cleanup: Clang-tidy, modernize-use-nullptr.Ankit Meel
2020-11-09Cleanup: more renaming in the render/ module for consistencyBrecht Van Lommel