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
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2021-06-24Cleanup: correct variable name in commentsCampbell Barton
2021-06-24Cleanup: remove outdated/redundant commentsCampbell Barton
2021-06-24Cleanup: clang-format, spellingCampbell Barton
2021-06-24LineArt: Bound box visibility check when loadingYimingWu
This patch enables bound box check when loading geometry into line art. Works with overscan as well. Will discard object if its bbox completely lies in one side of the clipping space frustum. Reviewed by: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11545
2021-06-24Line Art: Discard out of frame edges.YimingWu
For scenes that have a lot of edges, this could potentially save some time generating individual strokes that are outside camera frustum. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11525
2021-06-23Voxel Remesher: Make smooth shading output automaticPablo Dobarro
Previously the smooth shading of the voxel remesher was controlled by a mesh property. With this change, the output will try to match the current shading of the object. This only takes into consideration the shading mode of the first polygon of the model, but it is probably what most users expect as it works as intended with the shade smooth/flat object mode options. Reviewed By: JulienKaspar, JacquesLucke Differential Revision: https://developer.blender.org/D11626
2021-06-23Fix T89221: Sculpt tools symmetry failing with non symmetrical meshesPablo Dobarro
SCULPT_nearest_vertex_get expects a distance, not a distance squared. This should make symmetry work as expected, but it still can fail if the mesh topology is not completely symmetrical. Reviewed By: JacquesLucke Maniphest Tasks: T89221 Differential Revision: https://developer.blender.org/D11642
2021-06-23Compositor: Full frame ID Mask nodeManuel Castilla
Adds full frame implementation to this node operations. No functional changes. 1.2x faster than tiled fallback. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11638
2021-06-23Compositor: Full frame Image nodeManuel Castilla
Adds full frame implementation to Image node operations. Mostly refactored into buffer utility methods for reuse in other operations. No functional changes. 1.8x faster than tiled fallback. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11559
2021-06-23Cleanup: remove unused parameterManuel Castilla
2021-06-23Fix T88769: GPencil smooth incorrect behavior in cyclic strokesAntonio Vazquez
When use smooth tool in a cyclic stroke, the smoothing algorithm was not using the adjacent points if these are the end or start of stroke. Now, the smooth uses the other extreme of the stroke to compute smoothness.
2021-06-23LibOverride: Also override owner collection in Outliner hierarchy override.Bastien Montagne
This change will ensure at least one 'local' collection can host the new 'local' override of all objects (indirectly) overridden by this operation, such that no new override of object ends up in master collection (which can become extremely messy in production files). In practice, it means often at least one of the linked collection owning those objects also has to be overridden. NOTE: This only affect cases where root overridden linked object has some dependencies outside of its own root linked collection. While this situation should be avoided, it cannot always be, so we try to support it as best as we can.
2021-06-23Memfile Undo: aslo tag embedded IDs for update.Bastien Montagne
This is again in the fuzzy area of how embedded IDs are handled respectively by partial undo code and depsgraph... Should not be necessary currently, but better be safe and explicit, and also tag those embeded IDs from re-used owner ID.
2021-06-23Fix T89269: Memory corruption during extrusions of overlapping edgesGermano Cavalcante
The "extrude" operator with the "use_dissolve_ortho_edges" option assumed the edges were connected.
2021-06-23Fix (studio reported) crash on Undo in some cases.Bastien Montagne
Would crash when adding or removing a collection directly to the master collection of a scene. Consequence of change to handle depsgraph-controlled evaluation of some IDs (like excluded collections which do not get evaluated and do not get a COW anymore). See rBcf4258673755 and D10907. Note that this mostly demonstrates once again how weak and flacky our handling of embedded IDs still remains, with some part of the code handling them as independent IDs, some as fully local/private data, some as a mix of both... and lots and lots of custom handling code and corner cases that are a bottomless pit of issues. Also quiet incredible that this was not reported already, luckily this original change did not make it to 2.93 release.
2021-06-23Readfile: use CLOG instead of printf's.Bastien Montagne
Note that this commit uses a second LogRef (`blo.readfile.undo`) for undo specific meassages. Allows to use `--log "*undo*"` cli option to match all undo reporting. Also did some minor tweaks to some reports on the way.
2021-06-23Fix Scene/MasterCollection handling in `BKE_main_collection_sync_remap()`.Bastien Montagne
Those were missing proper (explicit) object cache clear, and DEG tagging. Note that this was most likely not an common issue in practice (Collection object cache clearing recursively goes into all parents, so master collection would only miss it in case they had no child collections at all, and tagging of those happens almost always at other steps on remapping). But better to be explicit and consistent here in any case.
2021-06-23Fix T89342: Select mirror with a zero length central edge assertsCampbell Barton
2021-06-23Fix T89367: Crash running edit-mesh select_linked_pick from PythonCampbell Barton
2021-06-23Revert "Revert "Enhanced stats/reports for blendfile reading.""Bastien Montagne
This reverts commit rB3a48147b8ab92, and fixes the issues with linking etc. Change compared to previous buggy commit (rBf8d219dfd4c31) is that new `BlendFileReadReports` reports are now passed to the lowest level function generating the `FileData` (`filedata_new()`), which ensures (and asserts) that all code using it does have a valid non-NULL pointer to a `BlendFileReadReport` data. Sorry for the noise, it's always when you think a change is trivial and do not test it well enough that you end up doing those kind of mistakes...
2021-06-23Fix T89265: Crash when tabbing through num inputsFalk David
Fix by reverting the part of ec30cf0b742f5181c4de91b474ca01d6a809c593 that assigned `but->editval` in `ui_numedit_begin_set_values`. Causing access freed memory when using tab to switch to a numeric input and then leaving the textbox by clicking outside. This was because `ui_numedit_begin_set_values` shouldn't need to set `but->editval` and overwrite the pointer. This would set a pointer that had previously been freed, causing a `NULL` check to fail later on. Ref D11679
2021-06-23Fix T89249: incorrect mesh validate error with zeroed vertex normalsCampbell Barton
It's not an error for centered vertices to have a zero normal.
2021-06-23Cleanup: reformat trailing comments that caused line wrappingCampbell Barton
2021-06-23Cleanup: clang-tidy quiet equals-default, nullptr warningsCampbell Barton
2021-06-23Cleanup: suppress clang-tidy warningsCampbell Barton
2021-06-23Cleanup: compiler warning for invalid argument typeCampbell Barton
2021-06-23Fix T89374: Erasing/cutting in Grease Pencil makes Blender shut downAntonio Vazquez
When cut a stroke of 1 point, the clean up done to avoid keep 1 point strokes removes the memory, but the pointer to the first stroke was not set to NULL. As this pointer is invalid now, any use of this produces a segment fault because the pointer is corrupted..
2021-06-22UI: Fix widget emboss: Also fade on the right sideLeon Leno
Currently the emboss is only fading on left side of the widget, resulting in the emboss extending vertically on the right side and ending abruptly. This patch fixes this by also fading the emboss on the right side and making it symmetric. Differential Revision: https://developer.blender.org/D10810
2021-06-22Transform: display units for proportional edit valueGermano Cavalcante
This fixes T88346. The code is also more readable by making a better distinction between the texts used for Distances, "Proportional Size" and "AutoIK-Len". And the text used to translate the "Proportional Size" is reused.
2021-06-22Cleanup: deduplicate code and rename variablesGermano Cavalcante
This makes it clearer that variables are strings and how they are used in the Move header code.
2021-06-22Fix T89327: Cube and ico sphere nodes do not create UVsHans Goudey
It turns out you have to add the UV custom data layer manually before calling the BMesh primitive operators, even if you pass `calc_uvs=true`.
2021-06-22Cleanup: Spelling MistakesLeon Zandman
This patch fixes many minor spelling mistakes, all in comments or console output. Mostly contractions like can't, won't, don't, its/it's, etc. Differential Revision: https://developer.blender.org/D11663 Reviewed by Harley Acheson
2021-06-22Cleanup: Remove extra blank lineAntonio Vazquez
2021-06-22Fix T89366: GPencil hide layers above parented layerAntonio Vazquez
The problem was the flag was not reset by layer in the loop.
2021-06-22Fix T89343: Point cloud instances not transformed when realizedHans Goudey
This problem has surprisingly been there for quite a few months. For point clouds all attributes were handled the same, even "position", which should be transformed when combining source points into the destination.
2021-06-22Revert "Enhanced stats/reports for blendfile reading."Brecht Van Lommel
This change crashes library linking operators, related tests and probably more. This reverts commit f8d219dfd4c31a918e33cb715472d91a5cd3fd51. Ref D11583
2021-06-22Geometry Nodes: Join curve attributes when realizing instancesHans Goudey
Previously the code assumed that curve instances had no attributes. This is true when the data came from curve objects, which don't support attributes currently, but it isn't necessarily true when retrieving curves from evaluated geometry sets.
2021-06-22Cleanup: Refactor spline copying functionsHans Goudey
Make the virtual functions protected and simpler, so that the logic is better contained in the base class's implementation. Also introduce a `copy_without_attributes` method to be used for realizing instances.
2021-06-22Fix deadlock with shrinkwrap and other modifiersBrecht Van Lommel
More code that needs task isolation. Encountered in sprite fright production file. Ref D11603
2021-06-22Enhanced stats/reports for blendfile reading.Bastien Montagne
Add direct user feedback (as a warning report) to user when recursive resync of overrides was needed. And some timing (as CLOG logs) about main readfile process steps. This is essentially adding a new BlendFileReadReport structure that wraps BKE_reports list, and adds some extra info (some timing, some info about overrides and (recursive) resync, etc.).
2021-06-22Minor cleanup to previous commit introducing `BLI_math_time`.Bastien Montagne
Forgot to address latest review comments, sorry for the noise.`:wq
2021-06-22Add initial `BLI_math_time` with a 'seconds decompose' function.Bastien Montagne
Allows to decompose a given amount of seconds into a random set of days/hours/minutes/seconds/milliseconds values. Also add matching test. Differential Revision: https://developer.blender.org/D11581
2021-06-22Fix T89360: Eevee transforms geometry when using "High Quality Normals"Germano Cavalcante
Offset missed in rB44d2479dc36f
2021-06-22Cleanup: split BKE_object_batch_cache_dirty_tagGermano Cavalcante
Create a more specialized function `BKE_object_data_batch_cache_dirty_tag`
2021-06-22Cleanup: deduplicate free codeGermano Cavalcante
It is more appropriate that `depths` is freed in `ED_view3d_depths_free`.
2021-06-22Draw: Added testcases for hair refine shaders.Jeroen Bakker
2021-06-22Fix T89347: Edit-mesh make planar faces doesn't update face normalsCampbell Barton
Invalid face normals were used for tessellation.
2021-06-22Fix T89345: Edit-mesh decimate doesn't update face normalsCampbell Barton
Invalid face normals were used for tessellation.
2021-06-22Fix T89196: Depsgraph use-after-free after scene switching undoSergey Sharybin
Delay depsgraph visibility update tagging until it is known that graph relations are up to date, and until it is known that the graph is actually needed to be evaluated. Differential Revision: https://developer.blender.org/D11660