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-06-02GPencil: New operator to Normalize strokesAntonio Vazquez
Sometimes is required to reset the thickness or the opacity of the strokes. Actually this was done using a modifier, but this operators solves this. Reviewed By: mendio, filedescriptor Maniphest Tasks: T87427 Differential Revision: https://developer.blender.org/D11453
2021-06-02Splines: Function to copy spline settings without dataHans Goudey
Often you need to copy a spline to do an operation, but don't want to manually copy over all of the settings. I've already forgotten to do it once anyway. These functions copy a spline's "settings" into a new spline, but not the data. I tried to avoid duplicating any copying so this is easier to extend in the future. Differential Revision: https://developer.blender.org/D11463
2021-06-02LineArt: Tolerance for faces perpendicular to viewYimingWu
This is due to cam->obmat precision issue, where it affects view vector precision. Reviewed by Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11461
2021-06-02Cleanup: Correct commentsHans Goudey
This corrects an outdated comment in the vector header and a typo in the index mask header.
2021-06-02Cleanup: Clang formatHans Goudey
2021-06-02Geometry Nodes: Allow reading converted attribute directly from splineHans Goudey
Often it would be beneficial to avoid the virtual array implementation in `geometry_component_curve.cc` that flattens an attribute for every spline and instead read an attribute separately for every input spline. This commit implements functions to do that. The downside is some code duplication-- we now have two places handling this conversion. However, we can head in this general direction for the attribute API anyway and support accessing attributes in smaller contiguous chunks where necessary. No functional changes in this commit. Differential Revision: https://developer.blender.org/D11456
2021-06-02Add workaround for gcc 11 compiler bugJacques Lucke
Differential Revision: https://developer.blender.org/D11462
2021-06-02Keymap: use D-Key for view-pie menuCampbell Barton
Use the D-key to access the view menu instead of the Tilda key, which isn't accessible on some international layouts. To resolve the conflicts the following changes have been made. - `D` (motion) opens the view menu. - `D` (mouse-button) uses grease-pencil (as it does currently). - `Tilda` is used to for "Object Mode Transfer" instead of the View menu. See T88092 for details. Reviewed By: Severin Ref D11189
2021-06-02Object: support running transfer mode in any object modeCampbell Barton
There is no need to limit this to sculpt mode, prepare for key short cut changes, see: T88092.
2021-06-02Docs: 2.93 release description for Linux appdataDalai Felinto
2021-06-02Fix T88567: Cryptomatte only works for the first View Layer.Jeroen Bakker
The view layer was always set to 0. This patch increments it.
2021-06-02Docs: formalize naming for generic callbacks in BKE_callbacks.hCampbell Barton
Add a doc-string explaining the purpose of each call back and how they should be used. Also add a currently unused callback 'POST_FAIL' that is to be used in cases the action fails - giving script authors, a guarantee that a call to `pre` will always have a matching `post/post_fail` call. - D11422: adds a callback that can use 'post_fail'. - T88696: proposed these conventions.
2021-06-02Cleanup: trailing commas to avoid right shiftCampbell Barton
This matches most declarations already in this file.
2021-06-02Cleanup: spelling in commentsCampbell Barton
2021-06-02Fix assert with geometry node outputHans Goudey
The previous commit (my own) returned early without providing a value for the node's output geometry set, which is required.
2021-06-02Cleanup: Avoid duplicating node input retrievalHans Goudey
Pass the selection name and the invert argument to each component instead of retrieving them every time.
2021-06-02Geometry Nodes: Add Delete Geometry NodeWannes Malfait
This node is similar to the mask modifier, but it deletes the elements of the geometry corresponding to the selection, which is retrieved as a boolean attribute. The node currently supports both mesh and point cloud data. For meshes, which elements are deleted depends on the domain of the input selection attribute, just like how behavior depends on the selection mode in mesh edit mode. In the future this node will support curve data, and ideally volume data in some way. Differential Revision: https://developer.blender.org/D10748
2021-06-02VSE: Use own category for metadata panelRichard Antalik
Metadata panel was visible in each category. In other editors, this panel is usually placed in category with other source media properties. In sequencer, metadata is transfered over while compositing and relation to particular strip is lost, therefore separate category for metadata seems to be best option. Since Metadata panel is alone in this category, it will be open by default.
2021-06-01Geometry Nodes: Skip calculating normals in transform nodeHans Goudey
This commit skips the eager recalculation of mesh normals in the transform node. Often another deformation or topology-altering operation will happen after the transform node, which means the recalculation was redundant anyway. In one of my test cases this made the node more than 14x faster. Though depending on the situation the cost of updating the normals may just be shifted elsewhere.
2021-06-01Fix T88715: particle size influence texture not working for 'keyed' or ↵Philipp Oeser
'none' physics types This was reported for the special case of mapping with "Strand / Particle" coords, but was not working with other coordinates either. Dont see a reason for not supporting Size influence textures for these kinds of particles (and since these types of particles have an "age" like all others as well, even the "Strand / Particle" coords are supported here as well) Maniphest Tasks: T88715 Differential Revision: https://developer.blender.org/D11449
2021-06-01LibOverride: Fix again infinite loop in resync in some complex/degenerated ↵Bastien Montagne
cases. Broken in recent refactor of (recursive)resync, reported by studio, thanks.
2021-06-01Geometry Nodes: add empty material slot to new meshesJacques Lucke
This fixes T88455 by adding an empty material slot to newly generated meshes. This allows the object to overwrite the "default" material without any extra nodes. Technically, all polygons reference the material index 0 already, so it makes sense to add a material slot for this material index. Differential Revision: https://developer.blender.org/D11439
2021-06-01BuildBot: CleanupJames Monteath
Removing scripts that were placed in the source tree that would drive the old buildbot. With the new buildbot in place these scripts aren't being used anymore. The buildbit is currently driven by `build_files/config/pipeline_config.json`. In the near future make update would also use this config. Overview of the new buildbot: https://wiki.blender.org/wiki/Infrastructure/BuildBot Work done by James Monteath.
2021-06-01Fix T88658: Force Fields of curve shape can crash if curve has only one pointPhilipp Oeser
`bvhtree_from_mesh_edges_create_tree` can actually leave the BVHTree NULL (e.g. if no edges are present). Now dont allocate `BVHTreeFromMesh` on the `SurfaceModifierData` at all in case the tree would be NULL anyways. Places like `get_effector_data` check for `SurfaceModifierData`- >`BVHTreeFromMesh` and dont try to stuff like getting a closest point on surface, which would crash as soon as BVHNodes would need to be accessed (from the NULL BVHTree). Maniphest Tasks: T88658 Differential Revision: https://developer.blender.org/D11443
2021-06-01Cleanup: remove unused parameter.Jeroen Bakker
2021-06-01Cleanup: remove unused parameter.Jeroen Bakker
2021-06-01Cleanup: NULL->nullptr.Jeroen Bakker
2021-06-01Cleanup: API for MeshExtractRunTimeData.Jeroen Bakker
2021-06-01DrawManager: Use CPP for Mesh Extraction Scheduling.Jeroen Bakker
More cleanups will come to make this more CPP-like.
2021-06-01Cleanup: LibOverride: rename 'local' group tagging functions to 'overrides'.Bastien Montagne
Since we use them on linked data now as well, 'local' does not fit them anymore.
2021-06-01Fix libOverride resync issues in some corner-cases.Bastien Montagne
This commit fixes two different issues: * In some cases, when an object was added to a sub-collection and used into a different subcollection, and the root common collection would not need to be resynced, it would end up creating multiple overrides of the new object. This was affecting both normal and recursive resync. * In recurisve resync case, the barrier code to define what is part or not of a override group/hierarchy was wrong. Note that the current solution for the first issue is sub-optimal (it goes back to the root of the override hierarchy and resync the whole thing), a better solution is TODO for now.
2021-06-01IDManagement: `BKE_libblock_rename`: assert we get local ID.Bastien Montagne
For now at least, linked data should never be renamed that way.
2021-06-01Fix `BLI_libblock_ensure_unique_name` not ignoring linked IDs.Bastien Montagne
This function would considere that there was a name conflict even in case existing ID would be a linked one. This is only a (symbolic) perforance improvement and logical fix, since `BKE_id_new_name_validate` would not do that mistake anyway.
2021-06-01ID Management: Allow unique name check for linked IDs too.Bastien Montagne
This is mandatory for liboverride resync, since this feature may imply we have to create linked overrides in libraries, and there may be several copies of those. This is also a first step to a more general support of IDmanagement-editing library data. Note that this commit should have absolutely no effect on current code, as the only function allowed to check unique names for linked IDs currently is `BKE_libblock_management_main_add`, which is unused. This commit also adds some basic testing for `BKE_id_new_name_validate`.
2021-06-01Cleanup: clang-tidyJacques Lucke
* `readability-redundant-member-init` * `readability-inconsistent-declaration-parameter-name` * Remove constructor that can be defaulted.
2021-06-01Compositor: Full-frame base systemManuel Castilla
This patch adds the base code needed to make the full-frame system work for both current tiled/per-pixel implementation of operations and full-frame. Two execution models: - Tiled: Current implementation. Renders execution groups in tiles from outputs to input. Not all operations are buffered. Runs the tiled/per-pixel implementation. - FullFrame: All operations are buffered. Fully renders operations from inputs to outputs. Runs full-frame implementation of operations if available otherwise the current tiled/per-pixel. Creates output buffers on first read and free them as soon as all its readers have finished, reducing peak memory usage of complex/long trees. Operations are multi-threaded but do not run in parallel as Tiled (will be done in another patch). This should allow us to convert operations to full-frame in small steps with the system already working and solve the problem of high memory usage. FullFrame breaking changes respect Tiled system, mainly: - Translate, Rotate, Scale, and Transform take effect immediately instead of next buffered operation. - Any sampling is always done over inputs instead of last buffered operation. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11113
2021-06-01Cleanup: Split draw_cache_extract_mesh into multiple files.Jeroen Bakker
draw_cache_extract_mesh for task scheduling. Will be refactored to draw_cache_extract_mesh_scheduling later on after migrating to CPP. draw_cache_extract_mesh_render_data extraction of mesh render data from edit mesh/mesh into a more generic structure. draw_cache_extract_mesh_extractors containing all the extractors. This will be split up further into a single file per extractor.
2021-06-01Cleanup: split face tessellation into inline functionsCampbell Barton
Prepare for multiple code-paths that recalculate tessellation.
2021-06-01Cleanup: split bmesh tessellation into it's own fileCampbell Barton
Prepare for further refactoring for these functions.
2021-06-01Cleanup: remove disabled face tessellation logicCampbell Barton
This was kept since these blocks are easier to follow. Remove as the overall result wasn't so readable (especially with nested ifdef's). Replace disabled code with comment on the indices used for quads/tris.
2021-06-01BMesh: remove checks for tessellating 2 sided facesCampbell Barton
2 sided faces aren't supported and will cause problems in many areas of Blender's code. Removing (implied) support for faces with fewer than 3 sides means the total number of triangles is known ahead of time. This simplifies adding support for multi-threading and partial updates to an existing tessellation - as the face and loop indices can be used to access the range of triangles associated with a face. Also correct outdated comments.
2021-06-01Cleanup: correct sculpt quat argument sizeCampbell Barton
2021-06-01GPU: add 2D projection functionCampbell Barton
When projecting into screen space Z value isn't always needed. Add 2D projection functions, renaming them to avoid accidents happening again. - Add GPU_matrix_project_2fv - Add ED_view3d_project_v2 - Rename ED_view3d_project to ED_view3d_project_v3 - Use the 2D versions of these functions when the Z value isn't used.
2021-06-01Fix buffer overrun in paint_line_strokes_spacingCampbell Barton
Error in 87cafe92ce2f99d8da620b80e1c26f8078554f93
2021-06-01Cleanup: spelling in commentsCampbell Barton
2021-06-01Cleanup: spelling in commentsKévin Dietrich
2021-06-01Docs: Limit the OCIO env vars that we documentAaron Carlisle
Brecht mentioned that these are a bit obscure and don't make much sense to override these.
2021-06-01Speedup exact boolean by avoiding some mallocs and frees.Erick Abrahammson
This is from patch D11432 from Erik Abrahamsson. He found that in some mpq3 functions called frequently from loops, passing in buffers for termporary mpq3 values can save substantial time. On my machine, his example in that patch went from 9.48s to 7.50s for the boolean part of the calculation. On his machine, a running time went from 17s to 10.3s.
2021-05-31Fix undeclared identifiers with 'DEBUG_TIME'Germano Cavalcante
These identifiers were accidentally removed in rB44d2479dc36f.
2021-05-31Merge branch 'blender-v2.93-release'Brecht Van Lommel