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-03LibOverride: ensure proper indirect tag for 'virtual' linked IDs.Bastien Montagne
Ensure 'virtual' linked override IDs generated by the recursive resync process are tagged as indirectly linked data. This is needed to avoid the 'missing data' messages on those virtual data-blocks after saving and reloading.
2021-06-03IDManagement: Collection: Fix several issues in relationships building code.Bastien Montagne
`BKE_main_collections_parent_relations_rebuild`, `BKE_collection_parent_relations_rebuild` anf their internal dependencies had two issues fixed by this commit: * Main one was that a same collection could be processed several times, sometimes even in an infinite loop (in some rare corner cases), by `collection_parents_rebuild_recursive`. * More exotic, code here would not ensure that the collections it was processing were actually in Main (or a master one from a scene in Main), which became an issue with some advanced ID management processes involving partially out-of-main remapping, like liboverride resync.
2021-06-03Cleanup: use ascii characters instead of unicode where possibleCampbell Barton
Follow own code style docs.
2021-06-03Cleanup: spelling in comments, correct outdated commentsCampbell Barton
2021-06-03Cleanup: use doxy sections for node_relationships.ccCampbell Barton
2021-06-03Fix invalid return values from file_executeCampbell Barton
Error in 6c8c30d865ee8aafc3a088ce97b1caa4c4cc9ed7
2021-06-03Draw Mesh Extractor: Fix used thread countGermano Cavalcante
Some threads were always idle because of this.
2021-06-02Cleanup: Remove unused 'ExtractTaskData's membersGermano Cavalcante
2021-06-02Cleanup: Fix build warningsRichard Antalik
2021-06-02VSE: Add strip-time intersection test functionRichard Antalik
Use SEQ_time_strip_intersects_frame function to test if strip intersects with frame. Note: There are cases where this function should not be used. For example splitting strips require at least 1 frame "inside" strip. Another example is drawing, where playhead technically doesn't intersect strip, but it is rendered, because current frame has "duration" or "thickness" of 1 frame. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11320
2021-06-02Cleanup: Strip duplication codeRichard Antalik
Remove unused flag `SEQ_DUPE_ANIM` and code used by this flag. Remove flag `SEQ_DUPE_CONTEXT` and refactor code, to split operator logic from duplication code. Reduce indentation level in for loop. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11318
2021-06-02Fix T57397: Movies are blurred after sws_scaleRichard Antalik
Images with 4:2:2 and 4:4:4 chroma subsampling were blurred when `SWS_FAST_BILINEAR` interpolation is set for `anim->img_convert_ctx`. Use `SWS_BILINEAR` interpolation for all movies, as performance is not impacted by this change. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11457
2021-06-02FFmpeg: Update proxy settingsRichard Antalik
Changes in rBce649c73446e, affected established proxy codec preset. Presets were not working and all presets were similar to `veryfast`. Tunes are now working too, so `fastdecode` tune can be used. I have measured little improvement, but I tested this only on 2 machines and I have been informed that `fastdecode` tune does influence decoding performance for some users. Change preset from `slow` to `veryfast` and add tune `fastdecode` Reviewed By: sergey Differential Revision: https://developer.blender.org/D11454
2021-06-02FFmpeg: Fix H264 lossless render not losslessRichard Antalik
While encoder parameters for lossless encoding are set correctly, output is not lossless due to pixel format being set to `AV_PIX_FMT_YUV420P` which is inherently lossy due to chroma subsampling. This was reported in T61569 and was merged to T57397, but there were 2 bugs - one for encoding and one for decoding. Set pixel format to `AV_PIX_FMT_YUV444P` when rendering lossless H264 files. This format isn't available in `codec->pix_fmts[0]` and it looks, that it has to be hard-coded. Reviewed By: sergey Differential Revision: D11458
2021-06-02Boolean exact: speedup by parallelizing a plane calculation.Erik Abrahamsson
This patch is from erik85, who says: This patch makes populate_plane inside polymesh_from_trimesh_with_dissolve run in parallel. On a test file with a boolean between two subdivided cubes (~6 million verts) this gives a 10% speed increase (49.5s to 45s) on my 6 core CPU. Also there is an optimization of other_tri_if_manifold to skip the contains-call and get the pointer directly. This reduces CPU time for find_patches from 5s to 2.2s on the same test file.
2021-06-02Boolean exact: speedup when there are many components.Howard Trickey
When there are many components (separate pieces of connected mesh), a part of the algorithm to determine component containment was slow. Using a float version of finding the nearest point on a triangle as a prefilter sped this up enormously. A case of 25 icospheres subdivided twice goes 11 seconds faster on my Macbook pro with this change.
2021-06-02Nodes: move some files to C++Jacques Lucke
This just moves a couple of files in `space_node` to C++ and fixes related errors. The goal is to be able to use C++ data structures to simplify the code. Differential Revision: https://developer.blender.org/D11451
2021-06-02Cleanup: unused variableCampbell Barton
2021-06-02Fix swapped x/y in event simulation scriptCampbell Barton
Incorrect area center calculation, also correct comments.
2021-06-02Fix T88732: Curve to mesh node crash with empty input curveHans Goudey
The mesh to curve node generated an empty curve because no edges were selected. This commit changes that node to not add a curve in that case. This also changes the curve to mesh node to not add a material when no mesh was created. Even though we don't expect null curves or meshes in this case, the change is harmless.
2021-06-02EEVEE: AOVs not same as cycles.Jeroen Bakker
EEVEE uses hashing to sync aov names and types with the gpu. For the type a hashed value was overridden making `decalA` and `decalB` choose the same hash. This patches fixes this by removing the most significant bit.
2021-06-02Revert "EEVEE: AOVs not same as cycles."Jeroen Bakker
This reverts commit 730a46e87d261543c9550ddef406894e14d5bea6.
2021-06-02EEVEE: AOVs not same as cycles.Jeroen Bakker
EEVEE uses hashing to sync aov names and types with the gpu. For the type a hashed value was overridden making `decalA` and `decalB` choose the same hash. This patches fixes this by removing the most significant bit.
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