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
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-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-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-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-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-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-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
2020-11-09Pointclouds: move blenkernel code to c++Jacques Lucke
2020-11-09Fluid: Fix strict compiler warningSergey Sharybin
Proper way to check for DEBUG_PRINT is to do `if defined` check rather than `if`: this is because in non-debug builds the symbol is not defined.
2020-11-09Cleanup: fix wrong merge, remove extra unique_ptr.Ankit Meel
Mistakes added in 3cb4c513080ebeead7c5629a7f0503fae9513803 and bec1765340c3c13f002882ce147762e4c38ed2c6 Reviewed By: sergey Differential Revision: https://developer.blender.org/D9514
2020-11-09Fix T80068: skin modifier not working with motion blurBrecht Van Lommel
The skin modifier did not output consistent results, causing failure to find corresponding vertices across frames. Remove unnecessary use of GSet, all we need is an array.
2020-11-09Fluid: Fix strict compiler warningSergey Sharybin
Proper way to check for DEBUG_PRINT is to do `if defined` check rather than `if`: this is because in non-debug builds the symbol is not defined.
2020-11-09macOS: follow system preference for natural trackpad scroll directionYevgeny Makarov
And remove Blender preference, which was expected to be set to match the system preference for correct behavior. Instead just handle this automatically. Differential Revision: https://developer.blender.org/D9402
2020-11-09Merge branch 'blender-v2.91-release'Sebastián Barschkis
2020-11-09Fix T82488: Mantaflow - force fields have very low influence compare to 2.90.1Sebastián Barschkis
Removed 0.2f factor when setting forces. Why this factor has been used when forces should only be clamped, nobody knows ..
2020-11-09Cleanup: fix some clang tidy issuesJacques Lucke