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-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
2019-03-02Cleanup: remove unused defineCampbell Barton
There is no reason to keep the option for separate allocations, it makes code harder to follow.
2019-03-02Cleanup: comments, assert align is a power of twoCampbell Barton
2019-03-02BLI_memarena: use ASAN memory poisonCampbell Barton
Detects invalid memory use when WITH_COMPILER_ASAN is enabled.
2019-03-02Cleanup: use dummy valgrind macros instead of ifdef'sCampbell Barton
2019-02-28Fix T62050: remove non-persistent timers in load-pre callbackJacques Lucke
This actually makes more sense than removing them in the load-post callback. During load, the file might register timers that would be removed immediately.
2019-02-26BLI_math: quat_to_axis_angle was zeroing the axisCampbell Barton
When there was no rotation the axis was zerod, while not exactly a bug, it means changing the angle does nothing and all axis-angle values are initialized with Y=1, use this convention when resetting the axis too.
2019-02-25Cleanup: use const args for BLI_math_rotationCampbell Barton
2019-02-23Cleanup: use specific names for global variablesCampbell Barton
hash & hashsizes are generic names, be more specific & define the generic names locally. Quiet undeclared variable warnings.
2019-02-20BLI_listbase: add an iterator macro that supports removalCampbell Barton
Avoids manually defining 'for' loops that store the next item in the linked list.
2019-02-18Fix T61473: Crash particle system is updatingSergey Sharybin
Original and localized particle settings were sharing some of the runtime pointers.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.