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
2021-05-14Cleanup: clang-formatCampbell Barton
2021-05-14DrawTest: Make setup method public.Jeroen Bakker
This allows other tests to override it.
2021-05-14Draw: Put DrawTest in its own compile unit.Jeroen Bakker
DrawTest will be used by other tests as well.
2021-05-14Fix sculpt neighbor iterator not taking visibility into accountPablo Dobarro
Sculpting tools are designed to ignore hidden geometry and behave like hidden geometry does not exist. When getting the neighbors of a vertex, now this takes into account hidden geometry to avoid returing neighbors which connected edge is not visible. This should make corner cases of a lot of tools work properly, especially when working in low poly meshes when is common to have a single face loop hidden. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D11007
2021-05-14Merge branch 'blender-v2.93-release'Kévin Dietrich
2021-05-14Fix T87929: Cycles, missing update when visibility is modifiedKévin Dietrich
This issue originates from a missing BVH packing for visibility data when it is modified. To fix this, this adds update flags to the managers to carry the modified visibility information from the Objects' modified flag to the GeometryManager. Another set of flags is added to determine which data need to be packed: geometry, vertices, or visibility. Those flags are then used when packing the primivites. Reviewed By: brecht Maniphest Tasks: T87929 Differential Revision: https://developer.blender.org/D11219
2021-05-14Fix Sculpt tools showing the cursor of the previous active brushPablo Dobarro
When using a tool that is not a brush, the previously used brush preset will still be active in the tool settings, so the cursor will draw its custom reviews. This checks if the current active tool is a brush before drawing its previews. If it is not a brush tools, it draws a default white cursor. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9418
2021-05-14Fix build after last commitHans Goudey
Part of a rename change in rBc5d38a2be8 was lost when committing.
2021-05-14Functions: Expose set_all method for generic virtual arraysHans Goudey
This is very similar to rB5613c61275fe6 and rB0061150e4c90d, basically just exposing a `VMutableArray` method to its generic counterpart. This is quite important for curve point attributes to avoid a lookup for every point when there are multiple splines.
2021-05-14Cleanup: Clang formatHans Goudey
2021-05-14Collada import: connect Emission texture to Emission socketScurest
An emission texture is currently connected to the Base Color socket. It should connect to the Emission socket, like a constant does. Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10990
2021-05-14Merge branch 'blender-v2.93-release'Fabian Schempp
2021-05-14Fix T87360 Multi input links aren't placed correctly when created with pythonFabian Schempp
link->multi_input_socket_index, which is used to calculate the links position on the multi-input socket, was not set. Now it is set to the sockets current link count. Review: Jacques Lucke (JacquesLucke) Differential Revision: https://developer.blender.org/D11082
2021-05-13BLI: simplify supporting heterogeneous lookup for new typesJacques Lucke
Heterogeneous lookup is useful when constructing a key in a map/set is relatively expensive (e.g. `std::string`). When doing lookups in the map/set, one usually does not want to construct the type to avoid overhead. Instead, heterogeneous lookup allows for using a different type (such as `StringRef`) as key. This change makes it easier to implement heterogeneous lookup for custom types. Before, one had to specialize `blender::DefaultHash`. Now, one just has to implement a `static uint64_t hash_as(value)` on the type itself. One still has to provide the equality operator in addition to the hash function of course.
2021-05-13Modifiers: allow usage of tbbJacques Lucke
Before, any usage of tbb wrappers used in modifier code would just fall back to the non-threaded non-tbb version. We ran into this issue a couple of times in patches.
2021-05-13Nodes: add utility method to get input/output of a DNodeJacques Lucke
This is a fairly common operation, so there should be a method that does it to avoid unnecessary complexity at the caller site.
2021-05-13BLI: support looking up a key stored in Map or VectorSetJacques Lucke
Sometimes it is useful to find the key that compares equal to a known key. Typically that happens when the key itself has additional data attached that is not part of its hash. Note that the returned key reference/pointer is const, because the caller must not change the key in a way that changes its hash or how it compares to other keys.
2021-05-13Functions: simplify adding a single input to a multi-functionJacques Lucke
This is used by the upcoming new geometry nodes evaluator.
2021-05-13BLI: add initial wrapper for tbb::enumerable_thread_specificJacques Lucke
The wrapper is necessary to support building without TBB. This class is used by the upcoming new evaluator for geometry nodes.
2021-05-13Nodes: ignore unavailable sockets in logically linked sockets iteratorJacques Lucke
Unavailable sockets should generally be ignored during evaluation. They mainly exist because we don't have a better mechanism to turn some sockets on/off depending on node parameters. Currently, it is still possible that a link connects an available with an unavailable socket. This link is not displayed in the ui and should generally be ignored.
2021-05-13Cleanup: inconsistent parameter nameJacques Lucke
2021-05-13Cleanup: missing overrideJacques Lucke
2021-05-13Geometry Nodes: add mutex for node ui storageJacques Lucke
Previously, multiple threads adding information to node ui storage at the same time resulted in memory corruption. The lock prevents that, but might potentially become a bottleneck in the future. For now favour correctness over a potential performance bottleneck.
2021-05-13BLI: add LinearAllocator.construct_array methodJacques Lucke
Previously, one could allocate an array, but not construct its elements directly. This method just adds some convenience.
2021-05-13Cleanup: use boolean argumentCampbell Barton
2021-05-13Cleanup: clang formatCampbell Barton
2021-05-13UI: Use term 'Preferences' instead of 'User Prefs'Aaron Carlisle
'Preferences' is the term used elsewhere in Blender so this commit makes the option more consistent. In the future, the "default" target could be changed to something more descriptive.
2021-05-13PyAPI Docs: Cleanup FormattingAaron Carlisle
2021-05-13UI: Improved "Area Close" Neighbor SelectionHarley Acheson
The new "Close Area" operator can let any neighbor replace the area to be closed. This patch improves the selection of the best, and most- aligned, neighbor. It maximizes the ratio of the shared edge lengths, rather than minimize the absolute amount of misalignment. This follows our expectations closer because it takes into account the relative sizes of the areas and their edges. see D11143 for details and examples. Differential Revision: https://developer.blender.org/D11143 Reviewed by Campbell Barton
2021-05-12Merge branch 'blender-v2.93-release'Richard Antalik
2021-05-12VSE: Fix disk cache potentially overwriting blend fileRichard Antalik
When disk cache path is same as blend file path, with Unix-like systems blend file can be overwritten by disk cache directory. This was caused by `BLI_delete(path, false, true)` when path points to file. On Windows this would result in error message and file would not be deleted. On Linux, file is deleted and then overwritten with cache directory. To further minimize chance of removing blend file, append disk cache path with `_seq_cache` suffix. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11217
2021-05-12Fix T88194: Animation player displays washed out colorsRichard Antalik
Byte images used `ibuf->float_colorspace` as source colorspace. This was oversight - `ibuf->rect_colorspace` should be used as source colorspace. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11223
2021-05-12VSE: Fix meta strip boundary can not be changedRichard Antalik
In e1f3996d740c, logic for changing metastrip start and end frame based on contained strips was removed. This was done intentionally and incorrect functionality wasn't noticed as drawing code reflected seemingly correct state. Original code was mostly correct, because meta strip doesn't store its internal start and end points. This code was restored with minor modifications so function `SEQ_time_update_sequence()` is fully self contained as it is used not only by transform operator. In addition, drawing glitches that happen when meta content is outside of meta boundaries were fixed. These glitches were not caused by e1f3996d740c. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11215
2021-05-12Cleanup: Simplify public/private specifiersHans Goudey
By rearranging a few variables we can remove redundant specifiers
2021-05-12Cleanup: Splines: Add accessors to spline vectorHans Goudey
Not allowing external direct access to the vector of splines in the curve will help for things like reallocating custom data when a spline is added or removed.
2021-05-12UI: Colors for Texture/Material node sockets and small tweaksPablo Vazquez
* Set colors for the new texture and material sockets * Material uses the same color used for shading icons * Texture uses a plum color desaturated enough to not be confused with Vector's violet * Image socket adjusted to be closer to Texture sockets but darker * Integer socket toned down in saturation to not stand out so much (and be closer to float sockets which are gray) Making this change now during bcon1 to gather feedback from the community, and because Geometry Nodes needs to use the new texture/material sockets.
2021-05-12Geometry Nodes Curves: Expose first builtin point attributesHans Goudey
This commit exposes the first spline control point attributes. The implementation incorporates the attributes into the virtual array system, providing efficient methods to flatten the data into a contiguous array and to apply changes from a flattened array. This is only part of the eventual goal, which includes changes to run attribute nodes separately for each spline to completely avoid copying. So far `tilt` and `radius`, the two generic attributes common to all spline types, are implemented. The more complex `position` attribute is also added. It requires some special handling for Bezier splines, where the control point handles need to be moved along with the control points. To make that work I also added automatic handle recalculation to the Bezier spline. Differential Revision: https://developer.blender.org/D11187
2021-05-12Fix T87851 EEVEE: Performance regression with baked lighting & transparencyClément Foucault
This was caused by the drivers not optimizing the shader enough to remove the samplers and data used by closure eval. Removing the lighting loops from the depth shader fixes the perf regression.
2021-05-12Fix T81247: Constrain selected UVs to correct UDIMSiddhartha Jejurkar
With Constrain to Image Bounds selected, UVs will be constrained to the correct/closest UDIM if the image is tiled. UVs will be constrained to the 0-1 UV space if the image is not tiled. This will override the present behavior of always constraining selected UVs to the 0-1 UV space (UDIM 1001). Reviewed By: campbellbarton Ref D11202
2021-05-12Merge branch 'blender-v2.93-release'Campbell Barton
2021-05-12Fix: IC keymap V-key view pie doesn't work in Weight Paint modeCampbell Barton
Remove the V key for switching to vertex mode in Weight Paint mode as it caused a key-conflict. Ref D11192
2021-05-12PyAPI: remove deprecated & unused BMesh.from_object deform argumentCampbell Barton
Ref T85675
2021-05-12PyAPI: remove context.active_baseCampbell Barton
All other access to the Base structure from Python was removed, it seems this was left in by accident. Ref T85675
2021-05-12PyAPI: remove deprecated 'wiki_url' for add-ons 'bl_info'Campbell Barton
This was only kept for compatibility with older add-ons and has been deprecated since 2.83. Ref T85675
2021-05-12Cleanup: use our own code style for doxy-gen comment blocksCampbell Barton
2021-05-12Builder: updated download urls with upcoming naming scheme.Jeroen Bakker
2021-05-12Fix custom bone shape scale affecting normal bone displaySebastian Parborg
Also some clang-format changes.
2021-05-12Nodes: add boilerplate for texture and material socketsJacques Lucke
The sockets are not exposed in any nodes yet. They work similar to the Object/Collection sockets, which also just reference a data block. This is part of D11222.
2021-05-12Merge branch 'blender-v2.93-release'Charlie Jolly
2021-05-12Fix incorrect labels for math node wrap functionCharlie Jolly
Found in T88151, labels are swapped. Vector math node is not affected.