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
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.
2018-09-02Cleanup: comment blocksCampbell Barton
2018-08-29Cleanup: use simple early exit for common caseCampbell Barton
Caused MSVC warning, may as well do simple check.
2018-08-10Cleanup: styleCampbell Barton
2018-08-05Fix indentation, spacing and added commentsRohan Rathi
2018-08-04Added comments on hn_mode, BMOps on bevelRohan Rathi
2018-06-20Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-06-18Multires: Remove unused functionSergey Sharybin
It uses derived mesh, and relies on scene stored in modifier data. So port is needed anyway.
2018-06-11Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-06-11Added ability to harden normals.Rohan Rathi
Uses 2 different params: mode and strength. There are still some hiccups with how 2.8 interacts with normals. Will resolve as support gets better
2018-06-04Merge branch 'master' into blender2.8Campbell Barton
2018-06-04Cleanup: strip trailing space in bmesh moduleCampbell Barton