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-07-03Fix T72214: Fluids: noise does not work with negative frame numbersJacques Lucke
The issue is duplicated code. There are two functions that zero-fill the frame number. They worked the same for positive frames numbers, but behaved differently for negative ones. On frame `-100`, `BLI_path_frame` outputs `-0100` and `fluid_cache_get_framenr_formatted_$ID$` outputted `-100`. I changed the behavior of the latter, because we depend on the behavior of the former for much longer already. Reviewers: sebbas Differential Revision: https://developer.blender.org/D8107
2020-07-03Clang-tidy: enable readability-container-size-empty warningJacques Lucke
Reviewers: sergey Differential Revision: https://developer.blender.org/D8197
2020-07-03Cleanup: add const in various placesJacques Lucke
2020-07-03Cleanup: Editors/GPencil, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/gpencil` module. No functional changes.
2020-07-03Cleanup: BMesh, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/bmesh` module. No functional changes.
2020-07-03Cleanup: Interface, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/interface` module. No functional changes.
2020-07-03Cleanup: Mark overriding function with `override` keywordSybren A. Stüvel
No functional changes.
2020-07-03Cleanup: bring operator overloads closer togetherJacques Lucke
2020-07-03Cleanup: use nested namespacesJacques Lucke
2020-07-03Cleanup: use trailing underscore for non-public data membersJacques Lucke
2020-07-03Cleanup: Use trailing underscore for non-public data membersJacques Lucke
This makes the code conform better with our style guide.
2020-07-03Fix T78570: Vert/Edge slide doesn't adjust UVsGermano Cavalcante
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03Clang-Tidy: Enable redundant static qualifier warningSergey Sharybin
This change enables readability-static-definition-in-anonymous-namespace warning in .clang-tidy configuration.
2020-07-03Move bSound cache handling during undo to new system.Bastien Montagne
2020-07-03Cleanup: do not use magic values for enums...Bastien Montagne
2020-07-03New undo cache management: Add Image IDs.Bastien Montagne
Some notes: * `Image.cache` acts as some kind of 'main' cache, when it is NULL (could not be restored), other caches should also be cleared. Oddly enough, previous code was not clearing **all** caches, could not find any reason for that behavior, so new code does a full clear. * `imamap` is still used for Node previews from scenes' compositor, however this is actually fully disabled in `direct_link_node()`. * For render slots we cannot use offsetof as third part of the cache key, so we are using a hash of the slot's name instead. As far as I can tell, this fixes T76989: Visual glitches when undo after reload multiple images by script (in Material Preview).
2020-07-03Readfile/Undo: initial refactor of cache preservation code.Bastien Montagne
Main goal here is to have better specificity using cache keys, to avoid same memroy address being re-used messing up with cache pointers restoration after undo had to re-read a data-block. Once all caches handling are ported to this new system, it should fix random issues like the one reported in T76989. Part of D8183, refactoring how we preserve caches across undo steps in readfile code.
2020-07-03IDTypeInfo: add new callback to loop over all cache pointers of an ID.Bastien Montagne
Part of D8183, refactoring how we preserve caches across undo steps in readfile code.
2020-07-03Add key structure and hashing utils for ID caches.Bastien Montagne
Part of D8183, refactoring how we preserve caches across undo steps in readfile code.
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03Cycles: rename viewport denoise Fastest option to Automatic and extend tooltipBrecht Van Lommel
2020-07-03Clang-tidy: Enable bugprone-lambda-function-name warningSergey Sharybin
2020-07-03Depsgraph: Use C++ style of guarded allocation of objectsSergey Sharybin
2020-07-03Guarded allocator: Override placement new operatorSergey Sharybin
Allows to in-place construct objects which are using guarded allocator.
2020-07-03GPencil: Cleanup move functions to geom from modifierAntonio Vazquez
2020-07-03GPencil: Cleanup Doxygen comments (cont)Antonio Vazquez
2020-07-03Cleanup: Fluid renaming from old 'manta' naming to new 'fluid' namingSebastián Barschkis
Changed variable names from mmd, mds, mfs, and mes to fmd, fds, ffs, and fes. The author of this commits lights a candle for all the merge conflicts this will cause.
2020-07-03GPencil: Cleanup Doxygen commentsAntonio Vazquez
2020-07-03Cycles: Use TBB's spin mutexSergey Sharybin
First benefit is reduced boilerplate code. Second benefit is fixed warnings about using deprecated spin lock on macOS when using SDK 10.12 and above. Differential Revision: https://developer.blender.org/D8182
2020-07-03BLI: Use TBB spin_mutex as SpinLock implementationSergey Sharybin
When building without TBB use native to the platform spin lock implementation. For Windows it is an atomic-based busy-wait, for Linux it is pthreads' spin lock. For macOS it is a mutex lock. The reason behind this is to stop using atomics library which has been declared deprecated in SDK version 10.12. So this changes fixes a lot of noisy warnings on the newer SDK. Differential Revision: https://developer.blender.org/D8180
2020-07-03BLI: Switch threads implementation file to C++Sergey Sharybin
Allows to use C++ primitives in the primitive implementation.
2020-07-03Clang-Tidy: Allow use with GCC but warn about possible failureSergey Sharybin
The compilation using GCC + Clang-Tidy succeeded for me and Sybren (with some linker caveats for Sybren) but seems that it is doable to make GCC + Clang-Tidy to officially work for Blender. Now it should be possible to enable Clang-Tidy doing something like make developer debug BUILD_CMAKE_ARGS='-DWITH_CLANG_TIDY=ON'
2020-07-03Clang-Tidy: Silence warning affecting newer codeSergey Sharybin
For now Clang-Tidy should be passable with the codebase as is. This warning will be addressed as quality day task.
2020-07-03Initial support of clang-tidy toolchainSergey Sharybin
Clang Tidy is a Clang based "linter" tool which goal is to help fixing typical programming errors. It is run as a separate compile step of every file, which slows compilation down but allows to fully analyze the file the same way as compiler does and catch non-trivial bugprone cases. This change includes: - CMake option called `WITH_CLANG_TIDY` which enables Clang Tidy linter tool on all source in the `source/` directory. This option is only available on Linux, as it is currently the easiest platform to get the Clang Tidy toolchain to work. - CMake module which is aimed to find latest available Clang Tidy. - Set of rules which allows to have Blender fully compiled without extra issues. The goal of this change is to provide a base ground so that solving all the warnings can happen later on, as a team effort. It should be possible to use Clang Tidy side-by-side with both GCC and Clang, but there seems to be some tweaks to be done in CMake to make it really work for Blender. For now use Clang toolchain if there are issues with GCC+Clang Tidy. It will be worked on in the nearest future to bring seamless experience for all configurations. Currently there is no official way of getting Clang Tidy on macOS, and on Windows there are some difficulties of hooking up Clang Tidy from LLVM package to the MSVC compiler toolchain. The actual warnings in the code will be addressed as a part of the Code Quality Days, task T78535. Differential Revision: https://developer.blender.org/D7937
2020-07-03Cleanup: spellingCampbell Barton
2020-07-03UI: Add Edge Loopcut Slide to edge menuAaron Carlisle
This was exposed in the context menu but not the main edge menu.
2020-07-03Fix T78551 EEVEE: Fix memleak from renderpass uboClément Foucault
2020-07-03Fix T78124 Overlay: Image: Camera background image transparency not workingClément Foucault
This changes to premultiplied blending for all cases and put the premult in the shader.
2020-07-03Fix T77559 Avoid wrong ob->imat leading to several bugsClément Foucault
This fixes T77559 Scale to zero in object mode unable to select
2020-07-03Fix T78527: GPencil Mirror modifier is inconsistent with Mesh Mirror (redo)Philip Holzmann
Simply the same code the regular mesh mirror modifier uses. Differential Revision: https://developer.blender.org/D8188
2020-07-02UI: rename Alpha to OpacityJuan
There was a discrepancy between the Tooltip of the Camera's Background Image that controls the opacity of the image and the operator's name that reads Alpha. The tooltip says **"Image opacity to blend the image against the background color"**, so it was renamed to Opacity to follow the tooltip. The decision for this change is that the naming Alpha is not the most appropriated, since it has nothing to do if a loaded image has an embedded Alpha channel or not. {F8540101} Reviewed By: #user_interface, pablovazquez Differential Revision: https://developer.blender.org/D7760
2020-07-02UI: Replace "Grease Pencil" with "Annotation" in user-facing options in the ↵Nicola De Mitri
Clip editor This revision affects the menu under: Clip > Track > Detect Features > Placement. A bit of UI that was probably missed when the legacy GP was renamed to Annotation {F8647693} In this state, it may be confusing for the user. Reviewed By: Blendify Differential Revision: https://developer.blender.org/D8139
2020-07-02Cleanup: Remove useless duplicated linesValentin
I spotted a duplicate struct declaration, so I had to check for other duplicated as well There might be some other but i am not confident enough for deleting them this regex search for duplicate ^(.*;)$\n(\1)$ Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D8146
2020-07-02UI: Dont abbriviate location & rotationAaron Carlisle
This resolves one of the last few areas where we still use inappropriate abbreviations. Reading abbreviated words is usually slower, because users must parse, guess and translate the words. Using abbreviations such as 'rot' is also especially bad since it's a word in itself too. The main advantage of abbreviations is that they are faster to *write*, which just isn't a concern for text in the UI. Differential Revision: https://developer.blender.org/D8174
2020-07-02GPencil: Cleanup - More rename from gp_ to gpencil_Antonio Vazquez
2020-07-02Sculpt: Mask By ColorPablo Dobarro
This tool generates masks based on the sculpt vertex colors by clicking on the model, similar to automatic selection tools in image editing software. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8157
2020-07-02Cleanup: Fix build error with clang on windows.Ray Molenkamp
Header and implementation signature for ED_object_add_duplicate were not the same leading to a build error with clang on windows.
2020-07-02Fix T78525: Status bar not reset after Edit Voxel SizePablo Dobarro
Reviewed By: sergey Maniphest Tasks: T78525 Differential Revision: https://developer.blender.org/D8181