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
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-10-10CMake/macOS/OpenMP: allow use of LLVM-Clang with OpenMP.Ankit Meel
The "Apple" part is guaranteed by the platform file. "Clang" is enough to differentiate it from other compilers. Came across this due to the custom built LLVM toolchain I'm using.
2020-10-10Cleanup: Declare variables where initializedHans Goudey
2020-10-10UI: Fix incorrect inactive status for curve propertiesHans Goudey
The "Geometry start & End" panel was grayed when using an object to create the curve bevel. It should only be grayed out in this case when no object is chosen in the "Bevel" subpanel.
2020-10-10Fix T81545: Moving nested collections changes view layer flagsHans Goudey
The code that restored collection flags after they are rebuilt when moving a collection didn't take into account collection children. The flag for the active collection was properly restored, but all of its children would take on the exclude flag of the collection the active collection was dragged into. This commit builds a temporary tree structure to store the flags for the moving collection and its children. Then it reapplies these flags after `BKE_main_collection_sync`. Differential Revision: https://developer.blender.org/D9158
2020-10-09Cleanup: Declare variables where initializedHans Goudey
Also use LISTBASE_FOREACH macro in a few places.
2020-10-09Cleanup: Use LISTBASE_FOREACH macroHans Goudey
2020-10-09Cleanup: alias: use const, remove unused variable.Ankit Meel
`targetIsDirectory` slipped through the code review of {D6679}/{rBafb1a64ccb81}. `BLI_is_dir` exists to check for directory status of a file. Remove some `else-after-return`s. Use `r_` prefix for return value arguments, and move it to the end in the list of arguments.
2020-10-09Fix T81573: Users refcount not incremented when creating a proxy.Bastien Montagne
Proxies are refcounting usages of objects, historical code was apparently missing that.
2020-10-09Cleanup: CMake/macOS: remove boost from OIIO libs.Ankit Meel
Introduced by me in {rB1f6b7387ad0177c1dec9bb83b7}.
2020-10-09Fix (unreported) install_deps: broken compilation of OIDN.Bastien Montagne
When OIDN version was bumped recently the required dependency to build it (ISPC) was not updated accordingly.
2020-10-09install_deps: Do not request elevated rights when creating directory in ↵Andreas Bergmeier
owned directory. This only creates elevated directory when necessary. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D1596
2020-10-09GPU: Add more safeguard for BGL callsClément Foucault
This makes sure no BGL call before window drawing locks the GPUState.
2020-10-09Fix New Boolean bug that left some stray vertices.Howard Trickey
The routine to find dissolvable vertices had a check to ensure that the vertex was exactly in line with the two neighbors. I have convinced myself that this check is unneccesary (it was failing with only a 1e-9 difference from 0 on a cross check), so have removed it.
2020-10-09BGL: fix issues with addons using BGL at startupClément Foucault
This was an issue for Cycles. This also makes the `GPU_bgl*` functions less fragile by checking for null pointers.
2020-10-09Revert "Revert "BGL: Workaround broken bgl usage caused by GPU refactor""Clément Foucault
This reverts commit f23bf4cb109cb8f39f873c4f80acbec3f33b098c.
2020-10-09CMake/macOS: Remove _LIBPATH, avoid link_directories.Ankit Meel
After tests were bundled in a single executable and cycles and libmv created their own tests, the warnings on macOS have gone over 800. The reason is setting `*_LIBRARIES` to names of the libraries and later using `link_directories` to link them properly. https://cmake.org/cmake/help/latest/command/link_directories.html > Note This command is rarely necessary and should be avoided where > there are other choices. Prefer to pass full absolute paths to > libraries where possible, since this ensures the correct library > will always be linked. The find_library() command provides the > full path, which can generally be used directly in calls to > target_link_libraries(). Warnings like the following popup for every target/executable, for every library it links to. ``` ld: warning: directory not found for option '-L/Users/me/blender-build/blender/../lib/darwin/jpeg/lib/Debug' ``` The patch completes a step towards removing `link_directories` as mentioned in TODO at several places. The patch uses absolute paths to link libraries and removes all `*_LIBPATH`s except `PYTHON_LIBPATH` from `platform_apple.cmake` file. (The corner case where it's used seems like dead code. Python is no longer shipped with that file structure.) Also, unused code for LLVM-3.4 has been removed. Also, guards to avoid searching libraries in system directories have been added. `APPLE` platform now no longer needs `setup_libdirs`, `cycles_link_directories`, and `link_directories`. The number of warnings now is less than 100, most of them being deprecation ones in dependencies. This patch depended on {rBb746179d0add}, {rB2fdbe4d05011}, {rB402a4cadba49} and {rBd7f482f88ecb}. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8855
2020-10-09GPU: Fix NOT ~ operator for eGPUSamplerStateAnkit Meel
The real maximum was `GPU_SAMPLER_ICON`, not `GPU_SAMPLER_REPEAT`, my bad. {rBa31a87f8943aa40} Move `GPU_SAMPLER_MAX` out of the enum since it's used as an `int` at many places. Also, the macro `ENUM_OPERATORS` needs a maximum, and this enumerator cannot be used as the argument of that macro. It creates wrong values in the `~` NOT operator. Thanks @deadpin for catching this. Reviewed By: fclem Differential Revision: https://developer.blender.org/D9157
2020-10-09Volumes: lower minimal voxel size in Mesh to Volume modifierJacques Lucke
The 0.1 limit was too large. The issue with making it smaller is that one can easily crash blender by making it to small. To counteract this, the step has been reduced as well. A voxel size/amount of 0 disables the modifier.
2020-10-09BKE: improve calculating edgesJacques Lucke
This is a follow up commit for rB309c919ee9. Clearing hash tables is now parallelized as well. Surprisingly, most of the time is actually spent in `free` (a couple of milliseconds per call in my test). Benchmark of individual functions: reserve_hash_maps: 17% add_polygon_edges_to_hash_maps: 49% serialize_and_initialize_deduplicated_edges: 12% update_edge_indices_in_poly_loops: 14% clear_hash_tables: 5%
2020-10-09BKE: parallelize BKE_mesh_calc_edgesJacques Lucke
`BKE_mesh_calc_edges` was the main performance bottleneck in D9141. While openvdb only needed ~115ms, calculating the edges afterwards took ~960ms. Now with some parallelization this is reduced to ~210ms. Parallelizing `BKE_mesh_calc_edges` is not entirely trivial, because it has to perform deduplication and some other things that have to happen in a certain order. Even though the multithreading improves performance with more threads, there are diminishing returns when too many threads are used in this function. The speedup is mainly achieved by having multiple hash tables that are filled in parallel. The distribution of the edges to hash tables is based on a hash (that is different from the hash used in the actual hash tables). I moved the function to C++, because that made it easier for me to optimize it. Furthermore, I added `BLI_task.hh` which contains some light tbb wrappers for parallelization. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D9151
2020-10-09Fix T81468: Missing NULL check for F-curve rna_path in versionning code.Bastien Montagne
2020-10-09UI: Fix node label overflow on high-DPIYevgeny Makarov
Ref D9099
2020-10-09Cleanup: spellingAndreas Bergmeier
Ref D9138
2020-10-09CleanUp: Introduce `eMeshBatchDirtyMode` enumJeroen Bakker
It used to be an int mode.
2020-10-09Revert "CleanUp: Introduce `eMeshBatchDirtyMode` enum"Jeroen Bakker
This reverts commit 0796807720882731cdb70be144aa182e9b0b9ee5.
2020-10-09UI: use Ctrl-TrackPad to cycle valuesYevgeny Makarov
Minor change missing from 9bfea67751dc59554c8928802b4e1f04278ab537 Ref D8530
2020-10-09PyDoc: Set max width to 1000pxAaron Carlisle
While not full width this gives a nice trade off between improved screen use space and readibility. The old value was 80 so this gives 25% more screen space. See T73223
2020-10-09Cleanup: operator execution types didn't read well on one lineCampbell Barton
2020-10-09Cleanup: spellingCampbell Barton
2020-10-09PyDoc: resolve duplicate module warningsCampbell Barton
Remove submodule listings from the module docstring, as this information already exists in the generator.
2020-10-09Cleanup: use real-module for 'bmesh.ops'Campbell Barton
Replace module-like object with Python module, this simplifies checks for generating API docs and is more correct.
2020-10-09Cycles: fix incorrect default value for node array socket typeKévin Dietrich
2020-10-09Cycles: fix incorrect asserts in node socket set functionsKévin Dietrich
2020-10-09Fix broken compilation after adding particles DNA defaults.Bastien Montagne
Was failing because of a mismatch between RNA and DNA defaults on `courant_target` property, removed RNA one (DNA came from initial value defined in BKE's particle creation code, think it's best to keep that one).
2020-10-08UI: Fix opacity of the popover arrow outlineYevgeny Makarov
Due to the old AA method, it was necessary to add transparency to the outline of the popover arrow to match the box outline opacity. This is no longer required after rB15dda0115c78. See the differential for before and after screenshots. Differential Revision: https://developer.blender.org/D9026
2020-10-08Fix T80974 GPU: Wide Line emulation shader does not always worksClément Foucault
This was caused by points well behind the near clip making the computation of the width wrong. The fix is to clip the line to the near clip plane.
2020-10-08T81340: UBSan: load of value .. not valid for GPU enum typeAnkit Meel
The underlying type of the enum cannot be fixed here due to its usage in C code. All the values possible in the width of the underlying type are not valid for an enum. Only 0 to (2*max - 1) if all enumerators are unsigned. So the macro asks for the biggest value among the //listed// ones. If any enumerator C is set to say `A|B`, then C would be the maximum. (2*max-1) is used as the mask. The warnings (for each enum modified in this commit): GPU_vertex_buffer.h:43:1: runtime error: load of value 4294967291 which is not a valid value for type 'GPUVertBufStatus' https://github.com/llvm/llvm-project/commit/1c2c9867 Ref T81340 Reviewed By: fclem Differential Revision: https://developer.blender.org/D9067
2020-10-08Fix T81529: Can't move with constraint to a zero-size local axisGermano Cavalcante
To fix the problem, it was necessary to create a fallback for the zero-sized axis in local orientation. This also affects the gizmos.
2020-10-08Cleanup: Move transform_orientations functions to separate headerGermano Cavalcante
Improves the organization and identification of the API.
2020-10-08Cleanup: Simplify transform_orientation_matrix_getGermano Cavalcante
This simplifies obtaining the parameters for internal functions. (switch was complicating a little) Also removes ureachable code.
2020-10-08Cleanup: Simplify use of 'Snapping Gears'Germano Cavalcante
This commit removes `t->snap[0]` and `t->snap_spatial[0]`. They were not actually being used, and could add overhead for transformation without snap.
2020-10-08Refactor CustomData interpolation code.Bastien Montagne
- Move some security checks outside of `interp` callbacks. Namely, that we do get interpolation weights, and have something to interpolate. Some callbacks where not checking on those anyway, safer to move that up into calling code. - Cleanup usage of sub-weights, lots of interpolation callbacks wher actually using those completely wrong. - Change default behavior when no weights are given to higher-level API functions: prevriously, each callback was responsible to handle that case (and one did not even do it!), they were switching to purely additive behavior then. Instead, we now default to expected simple average of source values. Note that the only real important change here is defaulting to actual average of source value when no inertpolation weights are given (afaik, this only happens in Weld modifier code). Differential Revision: https://developer.blender.org/D9114
2020-10-08Cleanup/refactor: move init of ParticleSettings to proper place.Bastien Montagne
2020-10-08Add DNA defaults for ParticleSettings.Bastien Montagne
2020-10-08DNA: cleanup endian switching when loading fileJacques Lucke
This patch "modernizes" `DNA_struct_switch_endian` similar to how I updated `DNA_struct_reconstruct` recently. Furthermore, some special case handling have been moved to another place. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D9089
2020-10-08Revert "BGL: Workaround broken bgl usage caused by GPU refactor"Clément Foucault
This reverts commit f12b0373f322b710b9fa5cebb67bdf363ff90e9f.
2020-10-08UI: Add icons for new sculpt trim toolsRahul Chaudhary
This patch adds missing icons for the new trim tools in sculpt mode. Although these tools recently got "add geometry" modes, it's more essential to highlight the most important feature of the tool, trimming, than to try to portray everything they can do. Differential Revision: https://developer.blender.org/D8963
2020-10-08Cleanup/refactor: move init of MovieClip to proper place.Bastien Montagne
2020-10-08Add DNA defaults for MovieClip.Bastien Montagne