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-08-21Shading: Add more operators to Vector Math node.OmarSquircleArt
Add Multiply, Divide, Project, Reflect, Distance, Length, Scale, Snap, Floor, Ceil, Modulo, Fraction, Absolute, Minimum, and Maximum operators to the Vector Math node. The Value output has been removed from operators whose output is a vector, and the other way around. All of those removals has been handled properly in versioning code. The patch doesn't include tests for the new operators. Tests will be added in a later patch. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5523
2019-08-20Cleanup: comparison warningCampbell Barton
2019-08-20BLI: double version of some math functions.YimingWu
2019-08-17Cleanup: spellingCampbell Barton
2019-08-16Cleanup: spellingCampbell Barton
2019-08-15Cleanup: clang-format, unused argCampbell Barton
2019-08-15Fix CDT bug causing crash with some output modes.Howard Trickey
Forgot to properly maintain the edge for faces while dissolving edges.
2019-08-14Mesh Batch Cache: Refactor + MultithreadClément Foucault
For clarity sake, the batch cache now uses exclusively per Loop attributes. While this is a bit of a waste of VRAM (for the few case where per vert attribs are enough) it reduces the complexity and amount of overall VBO to update in general situations. This patch also makes the VertexBuffers filling multithreaded. This make the update of dense meshes a bit faster. The main bottleneck is the IndexBuffers update which cannot be multithreaded efficiently (have to increment a counter and/or do a final sorting pass). We introduce the concept of "extract" functions/step. All extract functions are executed in one thread each and if possible, using multiple thread for looping over all elements. Reviewed By: brecht Differential Revision: http://developer.blender.org/D5424
2019-08-14Cleanup: clang-format, sort structs & cmake filesCampbell Barton
2019-08-14Text editor: syntax highlighting + line numbers on by defaultSybren A. Stüvel
The most common use of the text editor seems to be for scripting. Having line numbers and syntax highlighting enabled by default seems sensible. Syntax highlighting is now enabled by default, but is automatically disabled when the datablock has a non-highlighted extension. Highlighting is enabled for filenames like: - Text - Text.001 - somefile.py and is automatically disabled when the datablock has an extension for which Blender has no syntax highlighter registered. Reviewers: billreynish, campbellbarton Subscribers: brecht, billreynish Differential Revision: https://developer.blender.org/D5472
2019-08-11Cleanup: spellingCampbell Barton
2019-08-11BLI_math: add isect_tri_tri_v2, wrap via mathutils.geometryCampbell Barton
2019-08-10Cleanup: unused varCampbell Barton
2019-08-10Add Constrained Delaunay Triangulation routine to Blenlib.Howard Trickey
See Design task T68277, and patch D5423. This commit includes edits by @ideasman42 to patch in branch temp-D5423-update, plus responses to his comments.
2019-08-06Cleanup: move utf8 offset conversion into BLI_string_utf8Campbell Barton
There isn't anything specific to text data with these functions.
2019-08-05Cleanup: use unsigned char for theme colorsCampbell Barton
Nearly all byte-color functions use 'uchar' causing casts when then colors were passed in. Declare as uchar to remove the need for casts.
2019-08-05Cleanup: quiet cast warnings in recent commitCampbell Barton
2019-08-05New BLI Function: projmat_from_window_regionmano-wii
Creates a projection matrix for a small region of the viewport. Reviewers: campbellbarton, brecht Differential Revision: https://developer.blender.org/D5412
2019-08-05Fix T67109: n-gon tessellation error with co-linear edgesCampbell Barton
Improve the area calculation method for better precision, so faces offset from the center don't have a less precise area.
2019-08-02Fix address sanitizer overflow warnings for bit manipulation functionsBrecht Van Lommel
Perform with unsigned int instead of signed int. Differential Revision: https://developer.blender.org/D5402
2019-08-01Fix error de-duplicating BLI_file_read functionsCampbell Barton
Own error in recent code de-duplication: a345f56ce3331 causing issues on Windows. Flipped argument for reading the exact size.
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-07-30BLI_task: Cleanup: rename some structs to make them more generic.Bastien Montagne
TLS and Settings can be used by other types of parallel 'for loops', so removing 'Range' from their names. No functional changes expected here.
2019-07-30BLI_task: tweak default chunk size for `BLI_task_parallel_range()`.Bastien Montagne
Previously we were setting it to 1 (aka no 'chunking'), to follow previous behavior. However, this is far from optimal, especially with CPUs that can have tens of threads nowadays. Now taking an heuristic approach (inspired from the one already existing for `BLI_task_parallel_listbase()`, which tries to guesstimate best chunk sizes based on several factors (amount of threads/parallel tasks, total number of items, ...). Think this is a reasonable base ground, more optimization here would of course be possible. Note that code that was already explicitely settings some value here won't be affected at all by that change.
2019-07-30Cleanup: de-duplicate file reading codeCampbell Barton
Also remove goto's.
2019-07-23Cleanup: Rearrange the order of isect_ray_ray_v3 parametersmano-wii
And remove redundant add operation.
2019-07-23Fix T67389: Transform constraints fail at large distancesmano-wii
2019-07-15Fix reading directory as file content on LinuxCampbell Barton
Reading a directory as a file on Linux was attempting to allocate LONG_MAX, this happens in template file lists (fix for that coming next).
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.