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
2017-10-06Cleanup: Math lib naming (use v3 suffix)Campbell Barton
2017-10-06Cleanup: styleCampbell Barton
2017-10-02Math Lib: distance to AABBCampbell Barton
Original code by @mano-wii, modified for general use.
2017-09-29Drop platform support for Solaris & AIXCampbell Barton
These platforms didn't see maintenance in years. This commit just removes ifdef's & cmake check.
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-09-26Beauty fill was skipping small facesCampbell Barton
2017-09-26Fix T52871: beauty fill errorCampbell Barton
Only lock tri's facing different directions. Needed because scanfill creates zero area faces.
2017-09-26Revert "Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was ↵Campbell Barton
mistakenly considering the state as degenerated" This reverts commit a8f11f5422afa01608817755eea310e987f896be. Result is no longer symmetrical, will investigate a different fix.
2017-09-23Fix T52871: `BLI_polyfill_beautify_quad_rotate_calc_ex` was mistakenly ↵Germano
considering the state as degenerated
2017-09-19Correct test ifdef in polyfillCampbell Barton
2017-09-19Fix T52834: Polyfill2D fails with co-linear edgesCampbell Barton
2017-09-19CMake: update for renamed headersCampbell Barton
2017-09-19BLI_utildefines_iter: Use for iteration helpersCampbell Barton
2017-09-19Cleanup: BLI_utildefines prefix for header-only libsCampbell Barton
This allows to have different macro headers without them sharing similar names to regular C modules.
2017-09-19Avoid bias when calculating quad split directionCampbell Barton
Some error checks weren't being done in both directions when calculating the best split direction for a quad.
2017-09-18Math Lib: clamped rounding utility functionsCampbell Barton
2017-09-18Math Lib: add divide_floor_iCampbell Barton
Integer division that floors on negative output (like Python's).
2017-09-15Polyfill Beautify: option to rotate out of degenerate stateCampbell Barton
Needed for 3D iterative edge-rotation to avoid flipping when projected from different angles, but could keep zero area faces in 2D polygons.
2017-09-06Math Lib: normalized vector project functionsCampbell Barton
2017-09-05Cleanup: use constCampbell Barton
Also use assert w/ rotate_m4.
2017-09-03BLI_kdtree: utility function to remove doublesCampbell Barton
2017-08-27BLI_rect: Function to calculate a matrix from 2 rctf'sCampbell Barton
2017-08-23Cleanup: mark VA_NARGS_COUNT as publicCampbell Barton
Was already used in two other headers, remove underscore prefix.
2017-08-23Cleanup: move variadic defines to their own headerCampbell Barton
So we can use in headers without pulling in many other defines.
2017-08-23BLI_string_utils: string joining utility functionsCampbell Barton
Includes a version that takes a separator and macros for convenience.
2017-08-23GHash: BLI_ghash_reinsert_key utility functionCampbell Barton
Useful when ghash keys are reallocated.
2017-08-12Math Lib: add isect_seg_seg_v2_point_exCampbell Barton
This exposes end-point bias argument, needed in rare cases.
2017-08-11GHash: note that 'deprecated' is used for privateCampbell Barton
2017-08-11Cleanup: whitespaceCampbell Barton
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-01BLI_math: add simple helper to get amount of 'integer' digits in a float number.Bastien Montagne
2017-07-29Cleanup: multistatement-macros warningCampbell Barton
2017-07-27Cleanup: remove check for old GCC&PPCCampbell Barton
2017-07-16Fix T52034: cell noise renders different.Brecht Van Lommel
Tweak the bias from the previous fix a bit to be more backwards compatible in some scene. In the end which way we round is quite arbitrary, but keeping the case where the texture coordinate is exactly zero the same seems better.
2017-07-02Fix T51951: cell noise texture precision issue at unit vertex coordinates.Brecht Van Lommel
Solution is to bias the coordinates a little, same as Cycles checker texture.
2017-06-23Fix T51845raa
2017-06-19Cleanup: doxygen commentsCampbell Barton
Also remove duplicate & mismatching comments from grease-pencil header. Keep comments close to implementation to avoid getting out of sync.
2017-06-15Math Lib: add angle_on_axis_v3v3_v3Campbell Barton
Use for calculating the angle between 2 directions on an axis. Also signed version and normalized plane projection, use when input is normalized.
2017-06-12Cleanup: indentation, long linesCampbell Barton
2017-06-11BLI_kdopbvh: add ifdef's for debugging infoCampbell Barton
Allow to quickly enable print & tree verify.
2017-06-09Math Lib: Add mat3_from_axis_conversion_singleCampbell Barton
Single axis version of mat3_from_axis_conversion, when the second axis isn't important (orienting an arrow for eg).
2017-06-07gcc5 has issues with WconversionDalai Felinto
This leads to a crash in 2.8, but commiting here. Patch by Campbell Barton.
2017-06-06BLI: Use C++ guards for stack headerSergey Sharybin
This is handy to have C++ guards for BLI functions so they can be easily re-used in C++ code. This matches other headers from this library as well.
2017-06-02Cleanup: styleCampbell Barton
2017-05-31Task scheduler: Optimize subsequent pushing bunch of tasksSergey Sharybin
The idea is to accumulate all new tasks in a thread local queue first without doing any thread synchronization (aka, locks and conditional variables) and move those tasks to a scheduler queue once they are all ready. This way we avoid per-task-pool lock and only have one lock per bunch of tasks. This is particularly handy when scheduling new dependency graph node children. Brings FPS of cached simulation from the linked below file from ~30 to ~50. See documentation for BLI_task_pool_delayed_push_{begin, end} and for TaskThreadLocalStorage::do_delayed_push. Fixes T50027: Rigidbody playback and simulation performance regression with new depsgraph Thanks Bastien for the review!
2017-05-31Cleanup: Easier to read constant nameSergey Sharybin
2017-05-30Move GHash/GSet/LinkList iterators to BLI filesSergey Sharybin
Those are not depsgraph or C++ specific and can be used by everyone.
2017-05-30Move hash_combine utility function to a more generic placeSergey Sharybin
This way everyone can benefit from it, not only dependency graph.
2017-05-27Remove MinGW supportAaron Carlisle
The Issue ======= For a long time now MinGW has been unsupported and unmaintained and at this point, it looks like something that we should just leave behind and move on. Why Remove ========== One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based. However, now that this is no longer true we have basically stopped updating the need CMake files. Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see: https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch If we wanted to keep MinGW then we would need to make more custom patches to the external libs and this is not something our platform maintainers are willing to do. For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3 Fixes T51301 Differential Revision: https://developer.blender.org/D2648
2017-05-22Fix wrong comment in BLI_findstringindex (returns 0-based index!).Bastien Montagne