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
path: root/source
AgeCommit message (Collapse)Author
2019-09-14macOS: Replaced OSSpinLock with os_unfair_lock.Stefan Werner
OSSplinLock is a deprecated API, os_unfair_lock is its successor. This reduces the number of warnings when building on macOS.
2019-09-14MSVC: Fix macro collision with MSVC HeadersRay Molenkamp
Picked up while investigating a build error on the functions branch which seems to use this specific header in a way master doesn't. The problem: The MSVC headers define a `_CONCAT` macro, so does BLI_kdtree_imp.h however at the end `BLI_kdtree_imp.h` undefines the macro making the MS headers that still rely on it "unhappy". Who's fault is this: Ours, C99 Spec says ``` 7.1.3 Reserved identifiers - All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use. ... if the program removes (with #undef) any macro definition of an identifier in the first group listed above, the behavior is undefined. ``` So we should not have defined it, and we definitely should not have undefined it. We have *tons* of these violations, although fixing them would be great at one point lots of them are in /extern or in the 3rd party deps, I'd rather deal with them on a case by case basis when it actually causes issues. Differential Revision: https://developer.blender.org/D5790 Reviewers: campbellbarton, JacquesLucke
2019-09-14Quiet self assignment warningJacques Lucke
2019-09-14VSE: quiet missing prototype warningsJacques Lucke
2019-09-14UI: quiet warning when drawing markersJacques Lucke
The compiler was warning that it assumed that crfa - 4 < cfra is always true even though that might not be the case due to overflow. This patch just removes the condition that caused the assumption.
2019-09-14BLI: make Map.add_or_modify more powerfulJacques Lucke
The function now allows custom return types defined by the callbacks. This can be useful when a user of the data structure has to implement some custom behavior.
2019-09-14BLI: add utility to print VectorSet statsJacques Lucke
2019-09-14BLI: speedup adding to VectorSet by removing a checkJacques Lucke
2019-09-14BLI: remove non const accessors in VectorSetJacques Lucke
With this the values could have been changed without updating the hash table.
2019-09-14BLI: add missing includeJacques Lucke
2019-09-14BLI: rename SetVector to VectorSetJacques Lucke
The structure is a set built on top of a vector and not the other way around.
2019-09-14BLI: Improve forwarding semantics of some data structuresJacques Lucke
This makes it possible to use e.g. `std::unique_ptr` in a map.
2019-09-14BLF: make library glyph cache handling thread-safeRichard Antalik
Functions that utilize glyph cache should lock and unlock cache by calling `blf_glyph_cache_acquire()` and `blf_glyph_cache_release()`. Function `blf_glyph_cache_acquire()` will create glyph cache, if it doesn't exist. Locking mutex is global and shared by all fonts. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5701
2019-09-14VSE: prefetchingRichard Antalik
When enabled prefetching(preview panel>view settings), a pernament running job is created, that will render frames in the background until the cache is full. If the cache is not filled fast enough, prefetch job suspends itself at the last moment and will wait until it has chance to "catch up". Effectively this will decouple rendering to separate thread, so rendering itself is a bit faster. Cache recycling behavior will be changed to "free furthest frame to the left of playhead if possible, otherwise rightmost frame". Reviewed By: brecht Differential Revision: https://developer.blender.org/D5386
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-14Cleanup: undeclared variable warnings, extra semicolonCampbell Barton
2019-09-14Fix T69857: image.load() API function does not load pixelsBrecht Van Lommel
Broke after recent changes for DNA default initialization.
2019-09-14Revert "DRW: Refactor to support draw call batching"Clément Foucault
This reverts commit ce34a6b0d727bbde6ae373afa8ec6c42bc8980ce.
2019-09-13Fix (unreported) 'smooth vertex colors' operator not respecting vertexPhilipp Oeser
paint mask selection followup to rBr27bbe7cbd9b, might as well make this consistent across all the color operations [with the exception of 'Dirty Vertex Colors' which is python] Reviewers: brecht Differential Revision: https://developer.blender.org/D5786
2019-09-13Fix Particles: Keyed Physics crash when clicking on a particle slotPhilipp Oeser
without a valid target rB95b9680597f5 introduced code that would skip creation of GPUVertBuf for ParticlePointCache if the keyed physics would not have a valid target. Missing vertex buffer would lead to assert/crash. This code is now removed (dont see a reason why this was done? afaict 2.79 also just displayed the particles without physics in this case and this seems to be working just fine in 2.8 as well) part of T69741 Reviewers: fclem Maniphest Tasks: T69741 Differential Revision: https://developer.blender.org/D5781
2019-09-13Fixed macOS build, header cleanup was too agressive.Stefan Werner
2019-09-13Cleanup: unused headers for readfile, versioningCampbell Barton
2019-09-13Cleanup: unused headers for the windowmanagerCampbell Barton
2019-09-13UI: rename transform optionsCampbell Barton
When added to quick-favourites, these names are used which didn't make much sense out of the panel context.
2019-09-13Per-Viewport Collection VisibilityDalai Felinto
Support per-viewport collection visibility options. Note 1: There is no way to show a collection that was not visible before due to depsgraph. Otherwise we would risk having all the collections in the depsgraph and I believe this is not the idea. An alternative would be to have a new depsgraph for viewports that are not local. Something to keep in mind if we do per-viewport current frame in the future. So for now what we do is to only allow collections visibility to be disabled/hidden in this mode. Note 2: hide_viewport (the eye icon) doesn't really matter for depsgraph. So after the merge we can still ignore it to show the collections locally in a viewport with no problems for the depsgraph. Reviewers: brecht, sergey Subscribers: billreynish Related task: T61327 Differential Revision: https://developer.blender.org/D5611
2019-09-13DRW: Refactor to support draw call batchingClément Foucault
Reviewers: brecht Differential Revision: D4997
2019-09-13Fix `BLI_bvhtree_overlap_ex` assertmano-wii
2019-09-13Fix "minimum twist" curve flipping issueSebastian Parborg
Correct the code to actually do what the comment says. This fixes an issue where the curve would flip 180 degrees under certain conditions.
2019-09-13Cleanup: compiler warningsBrecht Van Lommel
2019-09-13Fix T69816: Using Transform gizmos in Sculpt Mode while MultiRes is ↵Pablo Dobarro
activated crashes Blender Reviewed By: jbakker Maniphest Tasks: T69816 Differential Revision: https://developer.blender.org/D5779
2019-09-13Fix T69804: Transform tools in sculpt mode fails with transformed objectsPablo Dobarro
Reviewed By: mano-wii Maniphest Tasks: T69804 Differential Revision: https://developer.blender.org/D5777
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
2019-09-13Fix T69846: Segment fault converting Curves to GPencil strokesAntonio Vazquez
The problem was when the material slot had something, but the material was NULL.
2019-09-13Fix T69829: Gpencil sample memory leaks.YimingWu
2019-09-13Fix vertex paint: color transform operators not respecting vertex paintPhilipp Oeser
mask selection for 'Invert', 'Levels', 'Hue saturation Value' and 'Bright/Contrast', face mask was respected, but vertex mask wasnt... Same code as done in 'Set Vertex Colors'. reported in T69835 Reviewers: brecht Maniphest Tasks: T69835 Differential Revision: https://developer.blender.org/D5783
2019-09-13Cleanup: Use bool instead of intAntonio Vazquez
2019-09-13Cleanup: use header guardsCampbell Barton
2019-09-13Cleanup: clang-formatCampbell Barton
2019-09-13UI: use pageup/down and home/end to scroll to start/end of menusJoep Peters
Differential Revision: https://developer.blender.org/D5582
2019-09-13BLI: add non-const lookup methods for StringMapJacques Lucke
2019-09-13BLI: add some missing methods to Map and SetVectorJacques Lucke
2019-09-13Tracking: Perform tracking and solving from a locked interfaceSergey Sharybin
Solves stability issues with possibly doing destructive changes to the tracking setup. Locking interface is the simplest and most reliable way to avoid crashes. It is still possible to run non-destructive changes such as clip view navigation. More operations can be marked as safe if needed. Fixes T67012: Software closes when a processing marker is deleted
2019-09-13Tracking: Move Lock Selection to an own operatorSergey Sharybin
There are no functional changes as far as users are concerned, just allows to mark operator as safe to be run from a locked interface.
2019-09-13Tracking: Mark view operators as safe for locked interfaceSergey Sharybin
2019-09-13Tracking: Cleanup, use bool type instead of intSergey Sharybin
2019-09-13GPencil: Fix unreported memory leak for weightsAntonio Vazquez
As the total of points was changed before free memory, if the total was lower than before, the remaining points were not released.
2019-09-13BLI: make more integer type conversions explicitJacques Lucke
2019-09-13BLI: fix some integer conversionsJacques Lucke
2019-09-13Add QuadriFlow remesherSebastian Parborg
2019-09-13BLI: new C++ hash table data structuresJacques Lucke
This commit adds some new hashing based data structures to blenlib. All of them use open addressing with probing currently. Furthermore, they support small object optimization, but it is not customizable yet. I'll add support for this when necessary. The following main data structures are included: **Set** A collection of values, where every value must exist at most once. This is similar to a Python `set`. **SetVector** A combination of a Set and a Vector. It supports fast search for elements and maintains insertion order when there are no deletes. All elements are stored in a continuous array. So they can be iterated over using a normal `ArrayRef`. **Map** A set of key-value-pairs, where every key must exist at most once. This is similar to a Python `dict`. **StringMap** A special map for the case when the keys are strings. This case is fairly common and allows for some optimizations. Most importantly, many unnecessary allocations can be avoided by storing strings in a single buffer. Furthermore, the interface of this class uses `StringRef` to avoid unnecessary conversions. This commit is a continuation of rB369d5e8ad2bb7.