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-07-07Cleanup: spellingCampbell Barton
2019-06-21Fix (harmless) Cycles ASAN warningsBrecht Van Lommel
2019-06-17Cleanup: comment spellingCampbell Barton
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-06-09Fix: Build error with clang on windows.Ray Molenkamp
clang does not seem support the static_assert with message overload.
2019-06-05Fix (unreported) Broken `BLI_threadapi_exit()`.Bastien Montagne
Function would not clear the static scheduler pointer, which lead to crash (mem use after free) when trying to re-init and use the task API again. Should not happen in Blender itself, but could in other cases (like some future gtests ;) ).
2019-05-31Cleanup: use static_assert on MSVC versions that support it.Ray Molenkamp
This greatly improves the error message
2019-05-31Cleanup: style, use braces in source/ (include disabled blocks)Campbell Barton
2019-05-31Cleanup: style, use braces in source/Campbell Barton
Automated using clang-tidy.
2019-05-31Cleanup: simplify static assert definitions, assuming C11 and C++11Brecht Van Lommel
2019-05-31Fix compilation previous commitJeroen Bakker
2019-05-31Fix T65334: use _Static_assert on clang as well, to avoid macOS build errorBrecht Van Lommel
Still needs a proper solution for older compilers with custom static assert. macro that can conflict when there is an assert on the same line in multiple files.
2019-05-27Cleanup: Fix warning in blenlib with MSVCRay Molenkamp
Some versions of the Windows SDK headers have a dbghelp.h that will emit C4091 warnings, repress them just this once, since the warn can be helpful in other places.
2019-05-26Fix: BLI_task_test deadlock on windows.Ray Molenkamp
This patch makes BLI_task_scheduler_create wait for all worker threads to have started before returning to caller. For very short workloads (BLI_taks_test) there is the chance that the worker threads have not fully started yet, and the main thread is calling pthread_join at the same time as pthread_setspecific is being called on the worker threads which causes a deadlock on pthreads4w. Differential Revision: https://developer.blender.org/D4936 Reviewed By: mont29, sergey, brecht
2019-05-25blenlib: Fix build warning with MSVCRay Molenkamp
The declaration and implementation of BLI_path_name_at_index were out of sync leading to build warning C4028: formal parameter 1/3/4 different from declaration
2019-05-25blenlib: Fix debug build warning with MSVC.Ray Molenkamp
Wrong printf format specifier was used leading to warning C4477
2019-05-25Cleanup: warnings building without ASANCampbell Barton
2019-05-23Cleanup: allow BLI_Buffer to be used without it's headerCampbell Barton
Without this any functions declared that take BLI_Buffer also needed to include the header.
2019-05-22BLI_memblock: Refactor for faster iteration and allocationClément Foucault
Remove the clear allocation flag as it has little impact since there should be very few allocation per redraw. Make BLI_memblock_alloc and BLI_memblock_iterstep much more cache efficient removing them almost entirely from performance profiles.
2019-05-22BLI_memiter: unpoison memory before freeing itJacques Lucke
2019-05-22Preferences: add handler for loading factory preferencesCampbell Barton
Allows app-templates to define their own adjustments to preferences. This matches `load_factory_startup_post`, use when loading preferences.
2019-05-21Cleanup: use term pad instead of paddingCampbell Barton
- Use min/max instead of bottom/top (in keeping with the rest of the BLI_rect API). - Swap args (was passing in max, min).
2019-05-21Graph Editor: view-selected takes scrubbing and marker region into accountJacques Lucke
2019-05-17Fix T63981: Factory default memory cache limit is 4096 MB (32bit builds)Sergey Sharybin
very straightforward: initialize default to the same hard limit as the RNA properties. Annoying part is that it's not trivial to make RNA to use same BLI functions, so leaving that behind for now.
2019-05-16BLI_memarena: unpoison memory before freeing itJacques Lucke
2019-05-15Fix T64623: Freestyle procedural noise not consistent across platformsBrecht Van Lommel
Use the Blender RNG instead of rand() to solve it.
2019-05-14BLI_memblock: Add more optionsClément Foucault
- Use int instead of uint for safety and less conversions. - Add free callback - Add cleared alloc option
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...