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
2022-01-20Cleanup: spelling in commentsCampbell Barton
2021-12-03Cleanup: move public doc-strings into headers for 'bmesh'Campbell Barton
Some minor improvements to doc-strings too. Ref T92709
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
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-07Cleanup: split bmesh normal calculation into separate filesCampbell Barton
2021-06-07Cleanup: remove redundant cast, use const castsCampbell Barton
2021-06-05Edit Mesh: partial updates for normal and face tessellationCampbell Barton
This patch exposes functionality for performing partial mesh updates for normal calculation and face tessellation while transforming a mesh. The partial update data only needs to be generated once, afterwards the cached connectivity information can be reused (with the exception of changing proportional editing radius). Currently this is only used for transform, in the future it could be used for other operators as well as the transform panel. The best-case overall speedup while transforming geometry is about 1.45x since the time to update a small number of normals and faces is negligible. For an additional speedup partial face tessellation is multi-threaded, this gives ~15x speedup on my system (timing tessellation alone). Exact results depend on the number of CPU cores available. Ref D11494 Reviewed By: mano-wii
2021-06-03Cleanup: use ascii characters instead of unicode where possibleCampbell Barton
Follow own code style docs.
2021-01-06Fix T84426: Limit dissolve ignores selection with custom normalsCampbell Barton
Regression in 9969c2dd165c7d8ffe607a5a050a80aa59ac50be. Add note that custom normal calculation functions write into to tags.
2020-11-19Cleanup: Grammar: "Allow to" vs gerundHans Goudey
In cases where "Allow" is followed by an infinitive, a noun needs to directly follow it. But it makes more sense to follow it with a gerund instead.
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-07-10Fix BM_loop_at_index_find lookupCampbell Barton
2020-07-09BMesh: add utility functionsCampbell Barton
- BM_edge_uv_share_vert_check - BM_face_uv_calc_center_median_weighted - BM_loop_at_index_find
2020-07-03Cleanup: BMesh, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/bmesh` module. No functional changes.
2020-06-10Mesh Edit: preserve Custom Normal vectors in topology operators.Alexander Gavrilov
Custom Loop Normals are normally encoded relative to the default normals, similar to normal maps, allowing them to naturally follow mesh deformations. Changes to mesh topology however often result in nonsensical effects that are not desired. The Remove Doubles operation especially (now known as Merge By Distance) is intended as a purely topological operation, and definitely should not change the vector of the custom normals. This patch implements that behavior by converting the relative encoding into an absolute vector layer for the duration of the operation. It also modifies other Merge types in this way for consistency, the Rip operator as their inverse counterpart; and also Delete, Dissolve, Connect Path and Knife operators as other examples more related to topology than shape. On the technical side, this ports mesh_normals_loop_custom_set to BMesh, and then uses a temporary Custom Data layer to store the normals as vectors for the duration of the above mentioned operations. When the normals are converted back to custom data, the caller can choose whether to mark edges as sharp to preserve distinct normals, or just average them instead. All but Remove Doubles choose to average for now. Differential Revision: https://developer.blender.org/D4994
2020-04-07Cleanup: remove unused BM_total_loop_select functionCampbell Barton
2020-04-05Cleanup: use const for 'clnors' argument where possibleCampbell Barton
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-02-26Cleanup: reduce CDDM use, remove unused function callsCampbell Barton
2020-02-14BMesh: stop BM_mesh_elem_index_validate from setting indicesCampbell Barton
This prevented indices from being set to temporary values, which is needed in some situations.
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-11-21Object: edit-mode data support for object vertex coordinate accessCampbell Barton
Allows to access/transform/restore edit-mode coordinates in a generic way.
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-06-24Fix T66030: [CRASH] Modifying Normals with Skin Modifier.Bastien Montagne
clnor editing code was simply not checking at all whether it has something to work on... Guess nobody had idea to edit custom normals on a mesh that has no normals before! :P This should probably be handled in a poll function too, to completely disable those tools when there are no faces/loops, but let's keep it to minimal changes at that point.
2019-06-16Fix T65809: Blender crash while using the Normal's "merge" option in edit mode.Bastien Montagne
Merge code will generate temp normal editing data for affected loops, but since it will later (by setting some edges/faces to smooth) alter and extend affected clnor spaces, it will also need temp normal editing data for some other loops around those vertices... Using those clnor editing data in that code is a bit of an abuse, but on the other hand that struct stores exactly what we need. So simply added an option to generate that editing data for all clnors of affected vertices.
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-05-08Normals Menu: fix Average to be able to specify type.Howard Trickey
Also removed some rogue debugging printfs from normal selection code.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-29Cleanup: comments (long lines) in bmeshCampbell Barton
2019-04-18Cleanup: comment blocksCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-27Cleanup: style, use braces for bmeshCampbell Barton
2019-03-19Fix T62713: Paste Normal Vectors - needed better selection handling.Bastien Montagne
Existing code was not really handling well cases were only edges or faces were selected (with match select modes). In those cases, we can assume user want to only affect loop normals of selected faces/edges, not all lnors of all (indirectly) selected verts. Also refactored the code a bit to move whole 'loop to edit' selection process into its own single function.
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-11-27Revert "Fix texture space not updating in edit mode."Campbell Barton
This reverts commit 3a038db576e97c0e720a92af05a218ed71ed121a. Caused CoW crash switching from edit to sculpt mode.
2018-11-26Fix texture space not updating in edit mode.mano-wii
2018-11-20Merge branch 'master' into blender2.8Bastien Montagne
2018-11-20Fix T57923: Freeze in mesh vnors computation code with some degenerated ↵Bastien Montagne
geometry. Second part of the fix: do not try at all to compute normals in degenerated geometry. Just loss of time and potential issues later with weird invalid computed values.
2018-11-20Fix T57923: Freeze in mesh vnors computation code with some degenerated ↵Bastien Montagne
geometry. Fix first part of it, the freeze itself being caused by float NAN values never comparing equal to anything, not even themselves.
2018-11-14Merge branch 'master' into blender2.8Campbell Barton
2018-11-14Cleanup: comment block tabsCampbell Barton
2018-11-10BMesh: backport minor changes from 2.8Campbell Barton
2018-11-10Cleanup: includesCampbell Barton
2018-10-24Merge branch 'master' into blender2.8Campbell Barton
2018-10-24BMesh: inline index lookupsCampbell Barton
For release builds this is now the same as indexing the array directly.