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-11-20Cleanup: spellingCampbell Barton
2020-08-07Cleanup: Blenkernel, 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/blenkernel` module. No functional changes.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2019-08-24Fix T68807: smoothing group issuePhilipp Oeser
Showed in OBJ export. Caused by comparison mistake in rB2e91fc39ac7. Reviewers: mont29 Maniphest Task: T68807 Differential Revision: https://developer.blender.org/D5561
2019-07-10Fix broken Mesh 'calc_smooth_groups' logic.Bastien Montagne
We need to check both polygons of a manifold edge to be sure it is actually smooth... Reported by Hugo Sales (@someonewithpc) on blender.chat, thanks.
2019-07-02Cleanup: move comments onto own lines to avoid breaking linesCampbell Barton
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell 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-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-26Cleanup: blank lines over doxy headersCampbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-07-16Cleanup: Use const qualifier for UV vertex mapSergey Sharybin
2018-07-16Cleanup: More clear naming in UV vertex/element mappingsSergey Sharybin
Also use unsigned short for loop index within a polygon for UV vertex mapping, which matches UV element mapping.
2018-07-13Cleanup: right shift argumentsCampbell Barton
2017-10-20Cleanup: redundant castsCampbell Barton
2017-06-02Cleanup: styleCampbell Barton
2016-07-25Cleanup: debug-only variable.Bastien Montagne
2016-07-21Add BKE_mesh_calc_islands_loop_poly_uvmap and use it in new OSD UV subdiv.Bastien Montagne
Also renamed BKE_mesh_calc_islands_loop_poly_uv to BKE_mesh_calc_islands_loop_poly_edgeseam, to avoid confusion...
2016-07-21BKE mesh mapping: add new BKE_mesh_edge_loop_map_create().Bastien Montagne
Maps edges to all their pair of loops.
2016-05-21BKE Mesh mapping: add 'vert to looptri' mapping generator.Bastien Montagne
2016-03-22Mesh API: add BKE_mesh_vert_edge_vert_map_createCampbell Barton
Handy when you need to reference connected verts directly.
2015-10-04BLI_Buffer: add BLI_buffer_reinitCampbell Barton
Useful for re-using a buffer when the existing data can be thrown away.
2015-10-04BLI_Buffer: support over 2gb allocationsCampbell Barton
Also move comment to C-source and enumerate useful features.
2015-09-04Quiet warningsJulian Eisel
We had too many warnings lately... was awaiting that someone would kill them - didn't happen -> goes to my commit ratio! :P
2015-07-23Fix memory leaks mesh w/ mesh remappingCampbell Barton
2015-07-23Utility function to get poly -> looptri mappingCampbell Barton
2015-06-20Transform: UV islands were split by windingCampbell Barton
This meant front/back faces from a projection would be seen as separate islands.
2015-05-17BMesh: don't check winding for uv-vert-mapCampbell Barton
Made link-select separate front/back with projected UV's
2015-04-30Data transfer - Loop Islands Hell Fixes.Bastien Montagne
This commit fixes several issues: * island_store->items_to_islands_num was reset each time we added a new island, this is stupid! Harmless too, though, afaikt. * partial verts bvhtree (with several islands) was hugely over-allocated... * we would 'leak' in neighbor islands when geometry itself was contiguous. * best_nor_dot was used incorrectly, leading to smaller weights for better matching normal! All those fixes are related to T44522 (through personal communications with reporter).
2015-04-28Minor cleanup in comments.Bastien Montagne
2015-04-28Fix T44530 UV islands fail on subsurf after mirror modifier.Antony Riakiotakis
Caused by own commit that changed island detection code. In the case of modifiers we don't want to take winding information into account, but left the code since there are use cases (like painting) which could use this.
2015-04-09Seriously... Fix building!Bastien Montagne
2015-04-09Fix part of T44320 selecting islands can fail.Antony Riakiotakis
Issue here is simple and has been fixed in other places such as texpainting: Basically if face has different winding, do not calculate it as adjucent to the other face, even if UV is identical. This allows us to stack islands of symmetrical closed meshes on top of one another and still be able to select the two identical island halfs (provided the normals are correct of course).
2015-02-20Fix possible (unlikely) memory leakCampbell Barton
2015-01-09BKE: Add 'mesh remap' code.Bastien Montagne
This is the (big!) core of mesh transfer data, it defines a set of structures to represent a mapping of mesh elements (verts, edges, polys of loops) between two arbitrary meshes, and code to compute such mappings. No similarity is required between source and destination meshes (though results when using complete different meshes are rather unlikely to be useful!). This code is not bound to data transfer, it is defined to be as generic as possible, and easy to reuse or extend as needs arise. Several methods of mapping generation are defined for each element type, we probably will have to adjust that in future (remove useless ones, add new ones...). For loops, you can also define islands (for UVs e.g.) so that loops of a same destination polygon do not 'spread' across several source islands. Heavily reviewed and enhanced by Campbell, thanks a lot!
2014-10-13Mesh calc smooth group: several fixes.Bastien Montagne
* Consider non-manifold edges as sharp, as in split normals handling. * Consider edges from sharp polys as sharp!!! * Fix returned number of groups (was off-by-one for non-bitflags grouping, could also be wrong in case of id overflow). Note about using sharp polys too to define groups: Only current use of this function (Obj exporter) does not need that, because it does its own check for sharp faces. However, we might reuse that func in other places in future (e.g. in custom split normals area), so better to get a consistent behavior!
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-26Code cleanup: use 'const' for arrays (blenkernel)Campbell Barton
2013-12-12Mesh API: Add BKE_mesh_origindex_map_createCampbell Barton
This API function lets original data loop over its derived data, Use for vertex paint, replacing custom function.
2013-12-12Code Cleanup: move mesh mapping functions into their own file/headerCampbell Barton