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-08-17Cleanup: header order, trailing spaceCampbell Barton
2020-08-14BLI: add reverse iterators, iterator constructor and Vector.insert/prependJacques Lucke
The new reverse iterators behave as the reverse iterators for contains from the standard library. Have a look at the tests to see how to use them. Using them will hopefully become easier with ranges in C++20. A Vector can now be constructed from two iterators, which is very common in the standard library. New Vector.insert methods allow adding elements in the middle of a vector. These methods should not be used often in practice, because they has a linear running time. New Vector.prepend methods allow adding elements to the beginning of a vector. These methods are O(n) as well.
2020-08-11Cleanup some building errors with ClangTidy.Bastien Montagne
2020-08-11Cleanup: Strict compiler flagsSergey Sharybin
Mainly caused by moving tests to source folder, which brings new compiler flags. Also, no need to extend include directories (to the non-existing paths, btw) since this is done by the CmakeList.txt which is in the blenlib folder.
2020-08-11Fix path regression test build failure on WindowsSergey Sharybin
The file was including BKE. It was a required fix for another compilation error a while back. It is a bad level include, and seems is not needed anymore.
2020-08-11Cleanup: spellingCampbell Barton
2020-08-10BLI: improve StringRef for C++17Jacques Lucke
Since C++17 there is also std::string_view, which is similar to StringRef. This commit does a couple of things: * New implicit conversions between StringRef and std::string_view. * Support std::string_view in blender::DefaultHash. * Support most of the methods that std::string_view has. * Add StringRef::not_found which can be used instead of -1 in some places. * Improve/fix the description at the top of BLI_string_ref.hh.
2020-08-10Tests: move remaining gtests into their own module foldersBrecht Van Lommel
And make them part of the blender_test runner. The one exception is blenlib performance tests, which we don't want to run by default. They remain in their own executable. Differential Revision: https://developer.blender.org/D8498
2020-08-10Merge branch 'blender-v2.90-release'Germano Cavalcante
2020-08-10Fix T78113: Random explosions of cloth with self collisionGermano Cavalcante
The problem is caused by a lack of prediction in the `isect_line_segment_tri_v3` that incorrectly confirms some intersections of coplanar segments to the triangle. The solution is to use another algorithm to detect intersections. This also resulted in a slight improvement in the performance: - 1min 17sec to 1min 6sec in my test file Differential Revision: https://developer.blender.org/D8500
2020-08-08Cleanup: replace sizeof division with ARRAY_SIZE macroCampbell Barton
2020-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-08Clenup: use STREQ macroCampbell Barton
2020-08-08Cleanup: remove redundant return parenthesisCampbell Barton
2020-08-07Cleanup: fix some clang tidy warningsJacques Lucke
2020-08-07Cleanup: use C++ style casts in various placesJacques Lucke
2020-08-07Cleanup: added explanation of why `incircleadapt` is allowed to be longSybren A. Stüvel
This is a followup of d4bd0789abb6e7805e07636232cec4480028f6d1, as it was lacking a bit of an explanation. No functional changes.
2020-08-07Cleanup: Delaunay 2D, silence Clang-Tidy readability-function-sizeSybren A. Stüvel
This adds a `NOLINT` marker to explicitly silence a warning from Clang-Tidy's `readability-function-size` rule for the `incircleadapt()` function in `delaunay_2d.c`. No functional changes.
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Blenlib, Clang-Tidy else-after-return fixes (incomplete)Sybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenlib` module. Not all warnings are addressed in this commit. No functional changes.
2020-08-07Code Style: use "#pragma once" in some newer headersJacques Lucke
Those were missing from the previous commit, because these headers only exist in the `master` and not in the `blender-v2.90-release` branch.
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in source directoryJacques Lucke
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
2020-08-06Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-06Cleanup: avoid debug-only includes for BLI_assert.hCampbell Barton
Having includes in debug builds makes it possible to accidentally break release builds. Avoid this by moving calls to other modules out of BLI_assert.h into BLI_assert.c
2020-08-05BLI: improve dot exporter interfaceJacques Lucke
2020-08-05BLI: add dot::Edge.set_label methodJacques Lucke
This method sets the label of an edge in a dot graph.
2020-08-04Merge branch 'blender-v2.90-release'Bastien Montagne
Conflicts: source/blender/editors/gpencil/gpencil_primitive.c
2020-08-04Cleanup: typos & co in UI messages (and some other places).Bastien Montagne
2020-08-04Merge branch 'blender-v2.90-release'Hans Goudey
2020-08-03Cleanup: Typos in comments.Bastien Montagne
2020-08-02Cleanup: pass const matricesCampbell Barton
Also order return matrices last.
2020-08-02Cleanup: pass const matricesCampbell Barton
Also order return matrices last.
2020-08-01Cleanup: use term init instead of initialize/initialiseCampbell Barton
The abbreviation 'init' is brief, unambiguous and already used in thousands of places, also initialize is often accidentally written with British spelling.
2020-08-01Cleanup: spellingCampbell Barton
2020-07-31Merge branch 'blender-v2.90-release'Brecht Van Lommel
2020-07-31Fix build error with clangBrecht Van Lommel
2020-07-31Merge branch 'blender-v2.90-release'Sergey Sharybin
2020-07-31BLI: Initial implementation of generic session UUID APISergey Sharybin
Covers basics like generation of new UUID. Also contains code needed to use the SessionUUID as a key in the Map.
2020-07-31BLI: fix float3 in-place operatorsJacques Lucke
2020-07-28Merge branch 'blender-v2.90-release'Germano Cavalcante
2020-07-28Fix precision issues in 'interp_weights_poly_v2'Germano Cavalcante
These precision issues were evident in corrected uvs when the option `"Correct Face Attributes"` is enabled.
2020-07-28Cleanup: spelling, commentsCampbell Barton
2020-07-28Particles: initial support for the Time input nodeJacques Lucke
2020-07-26BLI: Add MACRO for enum usage in C++Clément Foucault
This is handy to add support for enums used in both C and C++ files. This removes the need to typecast each time for every operation. Only support bitwise operators for now.
2020-07-25Particles: improve emitter when object is animatedJacques Lucke
2020-07-24Merge branch 'blender-v2.90-release'Germano Cavalcante
2020-07-24Cleanup: Rename 'isect_ray_seg_v3' to 'isect_ray_line_v3'Germano Cavalcante
The name was misleading as it returns true whenever it intersects the line represented by the points.
2020-07-24BLI: add MultiValueMapJacques Lucke
This is a convenience wrapper for `Map<Key, Vector<Value>>`. It does not provide any performance benefits (yet). I need this kind of map in a couple of places and before I was duplicating the lookup logic in many places.