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
2019-04-16Cleanup: trailing commasCampbell Barton
2019-04-16UI: Refactor View2D number drawingJacques Lucke
This also fixes alignment issues in many editors. E.g. the frame numbers were badly aligned to the grid lines in the timeline. Checkout the images in D4681 for more examples. Reviewers: brecht Differential Revision: https://developer.blender.org/D4681
2019-04-16CMake: fix WIN32 linking without sorted libsSergey Sharybin
2019-04-16CMake: add library deps to CMakeLists.txtCampbell Barton
Tested to work on Linux and macOS. This will be enabled once all platforms are verified. See D4684
2019-04-14Complete the set of matrix multiplication functions.Alexander Gavrilov
Also, mul_m3_m3m4 was named incorrectly.
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-04-14Cleanup: doxy commentsCampbell Barton
Use doxy references to function and enums, also correct some names which became out of sync.
2019-04-13Fix T37500: implement Bendy bone segment deformation interpolation.Alexander Gavrilov
Previously B-Bone deformation mapped every vertex to just one B-Bone segment. This results in abrupt transformation differences between the sides of each threshold plane, reducing the quality of B-Bone deformation and making the use of shape keys impractical. This commit replaces this approach with a linear blend between the two closest segment transformations, effectively representing the B-Bone as two weight-blended plain bones for each vertex. In order to distribute the interpolation more evenly along the bone, segment matrices for deformation are now computed at points between the segments and at the ends of the B-Bone. The computation also uses the true tangents of the Bezier curve for the orientation. The nodes at the end of the bone require some special handling to deal with zero-length Bezier handles caused by a zero ease value. The Copy Transforms constraint now also smoothly interpolates rotation and scaling along the bone shape when enabled. The initial version of the patch was submitted by @Sam200. Differential Revision: https://developer.blender.org/D4635
2019-04-10BLI_string: Add STR_ELEM macroCampbell Barton
A string comparison version of the ELEM macro, add to avoid verbose & repetitive strcmp/STREQ usage.
2019-04-09Cleanup: spellingCampbell Barton
2019-04-07Cleanup: add comments about dual quaternion scale handling.Brecht Van Lommel
Ref T63327
2019-04-02Cleanup: Fix compiler warningAntonioya
2019-04-02Fix Linux build error after recent changes.Brecht Van Lommel
2019-04-02Fix broken BLI_STATIC_ASSERT on Visual Studio.Brecht Van Lommel
The old trick seems to no longer work in newer VS version.
2019-04-02Cleanup: empty expression statement warningCampbell Barton
2019-03-27Cleanup: style, use braces for blenlibCampbell Barton
2019-03-26Fix T62958: Improve exponential easing formulaJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4596
2019-03-26Fix T62946: function abs() not working in driver expressions.Brecht Van Lommel
2019-03-22BLI Math: Add and use new `projmat_dimensions` utility.mano-wii
2019-03-20BLI_kdtree: add deduplicate functionCampbell Barton
Function to remove exact duplicates from the tree before balancing.
2019-03-20Cleanup: styleCampbell Barton
2019-03-20Cleanup: return early in BLI_path_frame_getSybren A. Stüvel
Instead of making the entire body of the function conditional, it now returns early, unindenting the entire function and preventing the reader from searching for a non-existent `else` clause. No semantic changes.
2019-03-20Fix BLI_path_frame_stripSybren A. Stüvel
The `BLI_path_frame_strip` function was completely broken, unless the number of digits in the sequence number was the same as the length of the extension. In other words, it would work fine for `file.0001.abc` (4 digit `0001` and 4 char `.abc`), but other combinations would truncate to the shortest (`file.001.abc` would become `file.###.ab` and `file.00001.a` would become `file.##.a`). The dependency between the sequence number and the file extension is now removed. The behaviour has changed a little bit in the case where there are no numbers in the filename. Previously, `path="filename.abc"` would result in `path="filename.abc"` and `ext=""`, but now it results in `path="filename"` and `ext=".abc"`. This way `ext` always contains the extension, and the behaviour is consistent regardless of whether there were any numbers found. Furthermore, I've removed the `bool set_frame_char` parameter, because it was unclear, probably also buggy, and most importantly, never used. I've also added a unit test for the `BLI_path_frame_strip` function.
2019-03-20Cleanup: use lowercase for dimensions in function namesCampbell Barton
Most API's already use this convention.
2019-03-19BLI_kdtree: add 1d kdtree supportCampbell Barton
Some users only use the tree to store a single value.
2019-03-19BLI_kdtree: add 2D kdtree supportCampbell Barton
Some users of the 3D versions were storing 2D data in it. Using a 3D tree for 2D data adds a spatially redundant branch every 3rd level, as well as some extra memory use, best avoid this.
2019-03-19Cleanup: use BLI_kdtree_3d prefixCampbell Barton
Use prefix now there isn't only the 3d version.
2019-03-19BLI_kdtree: refactor to support different numbers of dimensionsCampbell Barton
This moves logic into kdtree_impl.h which is included in a source file that defines the number of dimensions - so we can easily support different numbers of dimensions as needed (currently 3D and 4D are supported). Macro use isn't so nice but avoids a lot of duplicate code.
2019-03-19BLI_math: use fallback for compatible quaternion calculationCampbell Barton
Copy the new value when the compatible quaternion isn't usable.
2019-03-19BLI_math: add utility to calculate compatible quaternionsCampbell Barton
2019-03-19Cleanup: comment blocksCampbell Barton
2019-03-18Cleanup: remove compare_len_squared utilityCampbell Barton
There isn't any advantage to this over comparing the squared length.
2019-03-18Cleanup: rename BLI_kdtree vars & args for clarityCampbell Barton
2019-03-18BLI_kdtree: refactor boids specific logic into callbackCampbell Barton
Logic to for boids to avoid head-on collisions was in BLI_kdtree. Move this into a callback which is now defined in boids.c so the kdtree code can be kept generic.
2019-03-17Cleanup: use braces for BLI_kdtreeCampbell Barton
2019-03-17Cleanup: remove redundant checkCampbell Barton
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-12Cleanup: use doxygen sections for BLI_utildefinesCampbell Barton
2019-03-12Cleanup: BLI_utildefines struct macrosCampbell Barton
Use the term "AFTER" instead of "OFS" since it wasn't obvious these macros operate on everything after the struct member passed. Avoid casting to non-const types when only reading.
2019-03-08Cleanup: spellingCampbell Barton
2019-03-07Refactor building the draw string for floats and intsJacques Lucke
Differential Revision: https://developer.blender.org/D4466
2019-03-06Cleanup: unused function warningCampbell Barton
2019-03-06Fix T62210: endless loop in kd tree lookupCampbell Barton
Reset nodes after the first balance call.
2019-03-06Revert "Fix T62210: endless loop in kd tree lookup"Campbell Barton
This reverts commit 301bcf771dec827138412ca6e7a25e2269eb5e9e. Caused crash entering particle edit mode.
2019-03-05BLI_memiter: use ASAN memory poisonCampbell Barton
Detects invalid memory use when WITH_COMPILER_ASAN is enabled.
2019-03-05Cleanup: warning in release buildsCampbell Barton
2019-03-05Fix T62210: endless loop in kd tree lookupJacques Lucke
The problem was that `balance` expected that all node children are set to `KD_NODE_UNSET` by default. However, this might not be the case when `balance` is called more than once. The balance function might change the order of nodes even when no new point has been inserted.
2019-03-05Fix T60585: threadripper CPU only using 16 threads for e.g. sculpting.Brecht Van Lommel
This reverts the changes from ce927e1 to put the main and job threads on node 0. The problem is that all threads created as children from these threads will inherit the NUMA node and so will end up on the same node. This can be fixed case-by-case by assigning the NUMA node for every child thread, however this is difficult for external libraries and OpenMP, and out of our control for plugins like external renderers.
2019-03-02Fix BLI_mempool incorrect slop-space calculationCampbell Barton
Also ensure elements fit evenly into the chunk size causing allocations to be slightly smaller in some cases. In own tests reduces overall memory use by about ~4.5% for high poly meshes in edit-mode.
2019-03-02Cleanup: code style & commentsCampbell Barton