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-05-08BLI_memblock: New memory allocatorClément Foucault
This is really close to BLI_mempool but uses an array to keep track of the chunks of memory. There is no tagging necessary to clear the whole structure so reuse is fast. Naturally supports iteration but does not support freeing.
2019-05-08Cleanup: unused var, doxy syntax for math_matrix.cCampbell Barton
2019-05-07Fix T57767: Pivot point broken after scaling to 0 in a dimensionPhilipp Oeser
matrix inversion was changed in rB01c75c3765eb from own code to EIGEN for performance reasons. EIGEN would return a zero matrix on failure (resulting in the pivot always being at the object origin). This brings back the "old" matrix inversion code (which has the benifit of providing a partial solution which makes the local transform center appear correct) Reviewers: campbellbarton Maniphest Tasks: T57767 Differential Revision: https://developer.blender.org/D4804
2019-05-06Drivers: add an Average Scale option to the Transform Channel driver vars.Alexander Gavrilov
Unlike location and rotation, there is a meaningful definition of overall/average scaling via the total change in the volume. This adds an option to retrieve that via a single driver variable, instead of having to use three and an expression. Using the determinant to compute the volume scaling also allows detecting flipping due to negative scale - this is impossible to do via the three variable approach. The volume_scale functions are added purely for code readability: 'volume scale factor' is easier to understand than determinant. Differential Revision: https://developer.blender.org/D4803
2019-05-03Cleanup: warningsCampbell Barton
Quiet extra-semi-stmt & missing-variable-declarations
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-29Cleanup: comments (long lines) in misc librariesCampbell Barton
2019-04-29New BLI_NOINLINE macroJacques Lucke
This macro is handy in at least two occasions: * When you want to check the optimized generated assembly for some small function that would get inlined otherwise. * The marked function will be visible in profiling results. I can't test the implementations for other compilers now, so I did not include them. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4754
2019-04-26Fix T63853: BLI_current_working_dir did not return utf8 encoding on windows.Ray Molenkamp
When running blender in paths with special characters this caused issues.
2019-04-24Cleanup: sort CMake include pathsCampbell Barton
2019-04-22Cleanup: style, use bracesCampbell Barton
Add braces for modules already using braces almost everywhere.
2019-04-21Cleanup: comments (long lines) in blenlibCampbell Barton
2019-04-21Fix T63681: bad clipping of very long tooltipsBrecht Van Lommel
2019-04-20Cleanup: add missing macros to clang-formatCampbell Barton
2019-04-20Cleanup: re-use test for ELEM & STR_ELEMCampbell Barton
Avoid having same test running at the end of each macro.
2019-04-19Fix error in recently added STR_ELEM macroCampbell Barton
Very bad oversight, using pointer comparison instead of strcmp for all but the first item.
2019-04-18Armature: remove remains of the object-level deformation data cache.Alexander Gavrilov
Now that B-Bone shape data is kept in bPoseChannel_Runtime, the armature level cache only holds one quaternion value per bone. It can also be moved to runtime, and the structure removed. This has an additional effect that, as far as I can tell, now the Armature modifier can run as soon as all of the bones it actually needs are done, thus making T59848 a purely depsgraph level problem.
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-18Cleanup: comment blocksCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-16ClangFormat: add comments to ignore formattingCampbell Barton
2019-04-16Fix BLI_path test of BLI_path_frame_strip.Bastien Montagne
Ensure that returned string buffer is always properly initialized with NULL char...
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.