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-12-04Merge branch 'master' into blender2.8Campbell Barton
2017-12-02BLI_ghash: Description of GHash, GSetCampbell Barton
Also some re-indenting.
2017-11-30Merge branch 'master' into blender2.8Campbell Barton
2017-11-30Haiku OS SupportCampbell Barton
D2860 by @miqlas Even though Haiku is a niche OS, only minor changes are needed.
2017-11-29Merge branch 'master' into blender2.8Brecht Van Lommel
2017-11-29Fix paint float color blending bugs with alpha 1.0 and vivid light.Brecht Van Lommel
For some blend modes there would be no effect with factor 1.0, even if factor 0.999 would give a very different image. Now the result should have no discontinuity. Differential Revision: https://developer.blender.org/D2925
2017-11-24Merge branch 'master' into blender2.8Campbell Barton
2017-11-24Minor cleanup for own recent commits.Bastien Montagne
2017-11-23Merge branch 'master' into blender2.8Bastien Montagne
2017-11-23Add a new parallel looper for MemPool items to BLI_task.Bastien Montagne
It merely uses the new thread-safe iterators system of mempool, quite straight forward. Note that to avoid possible confusion with two void pointers as parameters of the callback, a dummy opaque struct pointer is used instead for the second parameter (pointer generated by iteration over mempool), callback functions must explicitely convert it to expected real type. Also added a basic gtest for this new feature.
2017-11-23Add ability to use more than one mempool iterator simultaneously.Bastien Montagne
This will allow threaded tasks to 'consume' all mempool items in parallel tasks, each one working on a whole chunk at once (to reduce concurrency managing overhead).
2017-11-23Merge branch 'master' into blender2.8Bastien Montagne
2017-11-23Add non-gcc variant of static assert macro.Bastien Montagne
Adapted from http://www.pixelbeat.org/programming/gcc/static_assert.html. Note that this macro just discards error message, so error when building is much less nice than with gcc's _Static_assert... But error log will point to right place in code, so should still be OK.
2017-11-23Merge branch 'master' into blender2.8Bastien Montagne
2017-11-23Cleanup: use signed atomic ops when needed.Bastien Montagne
2017-11-23Merge branch 'master' into blender2.8Campbell Barton
2017-11-23Revert "BLI_utildefines: Support SWAP macro with two args"Campbell Barton
This reverts commit d749320e3b10161430bc4cb7dd92edb63712bf8c. It's possible the container struct is larger, we could do sizeof checks that falls back to memmove but rather avoid complicating things.
2017-11-22Merge branch 'master' into blender2.8Campbell Barton
2017-11-22BLI_utildefines: Support SWAP macro with two argsCampbell Barton
2017-11-22Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-21Code cleanup: fix harmless compiler warning.Brecht Van Lommel
2017-11-20Merge branch 'master' into blender2.8Campbell Barton
2017-11-19Cleanup: remove BKE_utildefinesCampbell Barton
This was meant to be used for less general macros but was never used. Rename BKE_BIT_TEST_SET to SET_FLAG_FROM_TEST
2017-11-19Merge branch 'master' into blender2.8Julian Eisel
2017-11-18Cleanup: outdated commentCampbell Barton
2017-11-18Cleanup: styleCampbell Barton
2017-11-16Merge branch 'master' into blender2.8Bastien Montagne
2017-11-16BLI listbase: add bytes finding helpers.Bastien Montagne
Quite similar to string ones actually, except more generic. Used in id_override_static branch currently.
2017-11-15Merge branch 'master' into blender2.8Campbell Barton
2017-11-15BLI_utildefines: sync w/ 2.8Campbell Barton
2017-11-15Cleanup: use 'uint'Campbell Barton
2017-11-15GSet: utils to access data stored outside the setCampbell Barton
2017-11-15Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenlib/BLI_math_matrix.h source/blender/blenlib/intern/math_matrix.c source/blender/blenlib/intern/rand.c source/blender/editors/animation/anim_channels_edit.c source/blender/makesrna/intern/rna_mask.c
2017-11-14Fix missing SpinLock typedef on macOSArto Kitula
2017-11-14Add stdlib include for utildefinesCampbell Barton
Ideally we could just declare abort, but this has attributes based on the platform, so include stdlib instead.
2017-11-14Fix T53068: AMD Threadripper not working well with BlenderSergey Sharybin
The issue was caused by SpinLock implementation in old pthreads we ar eusing on Windows. Using newer one (2.10-rc) demonstrates same exact behavior. But likely using own atomics and memory barrier based implementation solves the issue. A bit annoying that we need to change such a core part of Blender just to make specific CPU happy, but it's better to have artists happy on all computers. There is no expected downsides of this change, but it is so called "works for me" category. Let's see how it all goes.
2017-11-14Cleanup: remove BLI_blenlib from ghash headerCampbell Barton
This causes source files to depend on ghash header for BLI_string/rect/listbase. Also quiet warnings.
2017-11-14BLI: sync changes from 2.8Campbell Barton
2017-11-10Merge branch 'master' into blender2.8Bastien Montagne
2017-11-09Moved alignment attributes from my last commit to BLI_compiler_attrs.h for ↵Stefan Werner
future use.
2017-11-07Sanitize use of BLI_iteratorDalai Felinto
We now initialize iter.valid as true as part of the main iterator (and manually when using via Python). And we don't even bother setting iter->current to NULL if it's invalid. Let's stick to using iter->valid only.
2017-11-07Fix jumps-dependent-on-uninitialized-variable for iteratorsDalai Felinto
We cannot have iter->valid unitialized, but we need to be sure it is set to true on begin. Bug found by Sergey Sharybin.
2017-11-02Fix iterator usage from C++ codeSergey Sharybin
Old code was not supported by GCC, see some details and progress https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55606
2017-11-02Merge branch 'master' into blender2.8Campbell Barton
2017-11-02Cleanup: code styleCampbell Barton
2017-11-01Implement a new automatic handle algorithm to produce smooth F-Curves.Alexander Gavrilov
The legacy algorithm only considers two adjacent points when computing the bezier handles, which cannot produce satisfactory results. Animators are often forced to manually adjust all curves. The new approach instead solves a system of equations to trace a cubic spline with continuous second derivative through the whole segment of auto points, delimited at ends by keyframes with handles set by other requirements. This algorithm also adjusts Vector handles that face ordinary bezier keyframes to achieve zero acceleration at the Vector keyframe, instead of simply pointing it at the adjacent point. Original idea and implementation by Benoit Bolsee <benoit.bolsee@online.be>; code mostly rewritten to improve code clarity and extensibility. Reviewers: aligorith Differential Revision: https://developer.blender.org/D2884
2017-10-31Introduce "skip" in BLI_Iterator structDalai Felinto
This helps iterators prevent recursion.
2017-10-29Merge branch 'master' into blender2.8Sybren A. Stüvel
2017-10-29BLI_heap: add validation check, improve testsCampbell Barton
Also minor readability changes, avoid running both heap_up/down gives minor speedup too.
2017-10-29Cleanup: move docs out of headerCampbell Barton