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-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-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.
2020-06-20Bevel: add new 'Absolute' mode for interpreting 'amount' value.Howard Trickey
This mode is like Percent, but measures absolute distance along adjacent edges instead of a percentage. So, for example, if you use this mode with 2 segments and profile=1, you will see the length that the bevel moves along unbeveled edges between beveled ones will match the value specified. Many users seem to expect this behavior, even though it means the bevel width is uneven, so this option is for them.
2020-06-10Cleanup: improve custom data type namesJacques Lucke
This is related to T76659. This just renames data type names to `CD_PROP_STRING`, `CD_PROP_FLOAT` and `CD_PROP_INT32`. It makes them a bit more specific and removes unnecessary abbreviations. Reviewers: brecht Differential Revision: https://developer.blender.org/D7980
2020-05-19Merge branch 'blender-v2.83-release'Hans Goudey
2020-05-19Fix T75383:Bevel weird behaviour when using bevel weightsHans Goudey
Don't use the cube corner special case when the offsets are different for the three edges involved. The generic VMesh for this situation isn't perfect, but it's much better than a failed cube corner VMesh. Tests pass.
2020-04-17Cleanup: use colon after doxygen parameters, spellingCampbell Barton
2020-03-20Cleanup: clang-format, comment indentationCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-15Cleanup: add parens for clarityCampbell Barton
2020-03-06Cleanup: use 'BKE_' prefix for BKE_deform API callsCampbell Barton
- Use 'BKE_object_defgroup' prefix for object functions. - Rename 'defvert_verify_index' to 'defvert_ensure_index' since this adds the group if it isn't found.
2020-03-02Bevel: Z-Up Custom Profile OrientationHans Goudey
When beveling architectural objects like baseboards or crown mouldings that may consist of multiple islands, it's useful if the orientation is at least conistent. This changes the arbitrary decision of how the orientation should start at a chain beginning to use the highest side of the profile in the Z direction. Reviewed By: howardt Differential Revision: https://developer.blender.org/D6946
2020-02-28Fix T74256, crash in bmesh.ops.bevel if segments not set.Howard Trickey
Also changed signature of bevel function to take integer for segments instead of float, which is just wrong.
2020-02-07Code Quality Day: Comment formatting in bmesh_bevel.cHans Goudey
2020-01-30Fix T73450, crash when adding segments on bevel.Howard Trickey
Needed to protect against a case where clamp overlap limited the offset to approximately zero, and the snap-to-pipe code would therefore encounter an almost degenerate profile and fail in matrix inversion.
2020-01-25Bevel: Remove Debugging CodeHans Goudey
Remove old / trivial print statements and drawing code. Reviewed By: howardt Differential Revision: https://developer.blender.org/D6661
2020-01-25Bevel: Simplify Profile Calculation StepHans Goudey
Profile calculation now happens in a single pass rather than being spread throughout the process. This means each profile will only be calculated a single time. Reviewed By: howardt Differential Revision: https://developer.blender.org/D6658
2020-01-13Fix T71329: Bevel: Don't drop offsets to 'in plane' facesHans Goudey
offset_meet creates offset lines that can't be directly intersected, so the average of the points on each offset line is 'dropped' onto the faces around the beveled vertex, which can depend on where the loop starts. This fix skips faces with the same normals as the "in plane" faces from build_boundary. Reviewed By: howardt Differential Revision: https://developer.blender.org/D6521
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-11-24Cleanup: spelling, repeated wordsCampbell Barton
2019-11-22Fixed rest of bevel regression tests.Howard Trickey
The calculation of pro_super_r rounded to a non-exact float, so put in rounding code for the special cases.
2019-11-22Fix some of the bevel regression tests.Howard Trickey
The code changes for custom bevels did not recalculated profiles in certain non-custom-profile cases after projection plane moves.
2019-11-21Cleanup: spellingCampbell Barton
One of the corrections from last cleanup was wrong.
2019-11-21Cleanup: spellingCampbell Barton
2019-11-21Bevel: Custom Profile and CurveProfile WidgetHans Goudey
Custom profiles in bevel allows the profile curve to be controlled by manually placed control points. Orientation is regularized along groups of edges, and the 'pipe case' is updated. This commit includes many updates to comments and changed variable names as well. A 'cutoff' vertex mesh method is added to bevel in addition to the existing grid fill option for replacing vertices. The UI of the bevel modifier and tool are updated and unified. Also, a 'CurveProfile' widget is added to BKE for defining the profile in the interface, which may be useful in other situations. Many thanks to Howard, my mentor for this GSoC project. Reviewers: howardt, campbellbarton Differential Revision: https://developer.blender.org/D5516
2019-08-16Fix T68103: bevel sometimes infinite loops with patch miter.Howard Trickey
Needed to null terminate list of chain to process width adjustments on.
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-26Fix T67595: bevel concave cube corner.Howard Trickey
The special case test for cube-like corner did not work if normals are flipped.
2019-07-20Fix T67196: bevel bad at a 3-edge bevel.Howard Trickey
The test for whether or not this was a "pipe" neglected to use fabsf() around a dot result.
2019-06-15Cleanup: spellingCampbell Barton
2019-05-31Cleanup: style, use braces in source/Campbell Barton
Automated using clang-tidy.
2019-05-28Cleanup: clang-formatCampbell Barton
2019-05-28Fix T65141 Bevel did not curve.Howard Trickey
The previous fix to the spike bug T64582 was not really right. This fixes that one properly and restores the desired curving profile in the bug's example.
2019-05-26Fix T64989 Bevel hangs with Mark Sharp sometimes.Howard Trickey
Code for extending sharp edges assumes ADJ pattern and this example uses TRI_FAN pattern. This change doesn't fix TRI_FAN mark sharp bug at least won't infinite loop any more.
2019-05-25Fix T64582: bevel spikes sometimesHoward Trickey
The code to move the profile plane needed to not do that in a few more cases.
2019-05-07Fix Bevel T64107 - width/depth value wrong for vertex only.Howard Trickey
Code fix from George Vogiatzis (Gvgeo), via D4811. Needed to initalize vert_axis.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-30Fix T63759 Vertex Bevel works for width and depth offset types.Howard Trickey
From D4719 by George Vogiatzis (Gvgeo).
2019-04-29Cleanup: comments (long lines) in bmeshCampbell Barton
2019-04-22Cleanup: style, use bracesCampbell Barton
Add braces for modules already using braces almost everywhere.
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-04-01Fix T63071: Bevel inconsistent results toggling harden_normals.Howard Trickey
Some iterations in bevel were over a hash table, which leads to possibly different results run-to-run, especially when loop_slide is enabled. Changed those iters to go over all verts of BMesh, which leads to consistent order run-to-run.
2019-03-27Cleanup: style, use braces for bmeshCampbell Barton
2019-03-19Cleanup: comment blocksCampbell Barton
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-06Cleanup: remove redundant file argumentCampbell Barton