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-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule. This should be the final commit of the series of commits that addresses this particular rule. No functional changes.
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in source directoryJacques Lucke
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
2020-08-04Cleanup: Bevel: Split two case for loop into separate functionHans Goudey
Previously a for loop with two iterations was used to calculate the 3D segment locations for the input number and the higher power of 2. Splitting off the inside of the for loop to a separate function makes the code more readable. This commit also includes a simple timer for bevel, enabled with a define. Interestingly, the cleanup in this commit happended to give a 3% speedup on a Ryzen 3700x for a bevel calculation with 64 segments.
2020-08-04Merge branch 'blender-v2.90-release'Hans Goudey
2020-08-04Fix (unreported): Bevel tool custom profile uses wrong segments numberHans Goudey
The bevel code initialized the CurveProfile with the "higher power of 2" segments after the normal number of segments, leaving the widget in an incorrect state after the calculation. A simple fix is to re-order the initializations, doing the input number second.
2020-08-04Cleanup: Reduce indentation in functionHans Goudey
2020-08-03Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-03Fix T79482: Triangulate quads with 'Beauty' can make zero area facesCampbell Barton
2020-08-01Cleanup: use term init instead of initialize/initialiseCampbell Barton
The abbreviation 'init' is brief, unambiguous and already used in thousands of places, also initialize is often accidentally written with British spelling.
2020-07-30Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-07-30Fix T79369: BMesh.calc_volume() gave incorrect resultCampbell Barton
2020-07-23Fix T29189 bevel crash.Howard Trickey
New code to calculate UV islands made an incorrect assumption about maximum stack size.
2020-07-23Fix T79189 bevel crash.Howard Trickey
New code to calculate UV islands made an incorrect assumption about the maximum size of a stack.
2020-07-21Bevel: Refactor "Vertex Only" to an enumHans Goudey
This matches the change that was done to the bevel modifier so that the interface for the modifier, the active tool, and the operator are consistent. This commit extends the refactor to the bmesh implementation too, so that the parameters in the implementation don't stray too far from what is exposed. Tests are adjusted and still pass.
2020-07-21UV: remove selection threshold for nearby coordinatesCampbell Barton
Internally UV selection considered close UV's to be connected. While this could be convenient in some cases, it complicates logic for more advanced selection operations that need to check when UV's should be considered part of the same vertex since simple threshold checks would give different results depending on the order of UV's tested. Users must now run "Merge by Distance" instead of relying on this selection threshold.
2020-07-20Fix T78733 Bevel sometimes produces zero-area UV face with odd segments.Howard Trickey
A bug introduced when I made the choice of interpolation face cleverer.
2020-07-18BMesh: utility for checking shared edge with limit argumentCampbell Barton
2020-07-15UV: support region fill for path selectCampbell Barton
This matches edit-mesh region selection (Ctrl-Shift-Select).
2020-07-14Cleanup: sort header, cmake pathsCampbell Barton
2020-07-14Cleanup: spellingCampbell Barton
2020-07-13Fix Extrude Manifold losing original UVGermano Cavalcante
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-07-10Fix T78766: Blender crashes after deleting vertices with Custom Normals.Bastien Montagne
Some core BMesh topology changing functions were not properly tagging custom normal runtime caches as dirty...
2020-07-10Cleanup: clang-formatCampbell Barton
2020-07-10Fix BM_loop_at_index_find lookupCampbell Barton
2020-07-10Fix missing adjacent UV check for recent UV path selectCampbell Barton
Path selection could cross UV islands if the destination element was on an island boundary.
2020-07-10Cleanup: spellingCampbell Barton
2020-07-10Cleanup: use FLT_MAX for the maximum path selection costCampbell Barton
A large number below FLT_MAX was used to avoid overflow, however this doesn't cause any problems.
2020-07-10Cleanup: variable names, use define for maximum path costCampbell Barton
2020-07-09UV: path selection supportCampbell Barton
This adds support for path selection for vertex edge & face selection modes, matching mesh editing behavior, useful with the UV rip tool. Region select & edge tagging are currently not supported, although they could be added eventually.
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-09Cleanup: move BMesh UV queries into their own fileCampbell Barton
2020-07-07Cleanup: use doxy commentsCampbell Barton
2020-07-06Cleanup: warning, spellingCampbell Barton
2020-07-06Fix faces disappearing when AutoMerge & SplitGermano Cavalcante
2020-07-06BMesh: add BM_face_calc_uv_crossCampbell Barton
2020-07-06BMesh: add BM_loop_other_vert_loop_by_edgeCampbell Barton
2020-07-03Cleanup: Unused variables in non-debug buildHans Goudey
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-07-02Cleanup: spellingCampbell Barton
2020-07-01Transform: generalized custom-data correction supportGermano Cavalcante
Support custom-data correction based on surrounding geometry for all transformation modes of the mesh transform operators. The is the same logic used in Vert and Edge Slide. In order not to change the current default behavior, this property does not affect Vert and Edge Slide modes.
2020-07-01Cleanup: spellingCampbell Barton
2020-06-26Cleanup: Fix strict compiler warning about variable shadowingSergey Sharybin
Thanks Howard for double-checking!
2020-06-26Fixed typo in previous commit (UV fix); had nonsensical self-test.Howard Trickey
2020-06-26Fix T76199 Bevel materials "bleed" over faces.Howard Trickey
When there is an odd number of segments, bevel has an ambiguous choice as to which side face to use to copy face attributes from and to use for UV (and other loops that have math function) interpolation. We used to make choice arbitrarily, which led to visually inconsistent results. Now there is tie-breaking code, face with lexicographic lowest value in vector with these elements: (1) connected component (in math-layer space) id (2) selected (0) vs unselected (1) (3) material index (4,5,6): z,x,y components of face center, in that order.
2020-06-25Cleanup: spellingCampbell Barton
2020-06-23Cleanup: A few small comment & naming changes in bevelHans Goudey
2020-06-23Bevel: Refactor profile type input to use an enumHans Goudey
This will allow the easier addition of a constant radius mode in the future and some changes in the UI to mirror the recent similar change from "Only Vertices" to the "Affect" enum.