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-03-15Cleanup: add parens for clarityCampbell Barton
2020-03-09Cleanup: Replace ABS/SQUARE/CUBE with function callsSergey Sharybin
While it might be handy to have type-less functionality which is similar to how C++ math is implemented it can not be easily achieved with just preprocessor in a way which does not have side-effects on wrong usage. There macros where often used on a non-trivial expression, and there was at least one usage where it was causing an actual side effect/bug on Windows (see change around square_f(sh[index++]) in studiolight.c). For such cases it is handy to have a function which is guaranteed to have zero side-effects. The motivation behind actually removing the macros is that there is already a way to do similar calculation. Also, not having such macros is a way to guarantee that its usage is not changed in a way which have side-effects and that it's not used as an inspiration for cases where it should not be used. Differential Revision: https://developer.blender.org/D7051
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-15Fix T58571: Limited dissolve ignores boundaries between delimited facesCampbell Barton
When a vertex between two edges is being collapsed, it's important that edges between delimiting faces use the angle between edges without scaling it down. While faces with different materials wont ever be merged into a single face, all the detail between the two faces may be removed.
2020-02-15Cleanup: define useCampbell Barton
2020-02-07Code Quality Day: Comment formatting in bmesh_bevel.cHans Goudey
2020-02-07Cleanup: use of 'unsigned'Campbell Barton
- Replace 'unsigned' used on it's own with 'uint'. - Replace 'unsigned const char' with 'const uchar'.
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-28Cleanup: warnings, clang-formatCampbell Barton
2020-01-28bmesh_intersect_edges: Don't detect faces if an edge already existsmano-wii
For optimization.
2020-01-27bmesh_intersect_edges: Improve detection of the best_facemano-wii
`lambda_a` made it more restricted than it should be.
2020-01-27bmesh_intersect_edges: Fix assertsmano-wii
2020-01-27Edit Mesh: Auto Merge - Split Edges & Faces - Better logic for splitting facesmano-wii
Differential Revision: https://developer.blender.org/D6626
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
2020-01-07bmesh_intersect_edges: Remove unnecessary index settingmano-wii
2020-01-06BM_mesh_intersect: Match the mesh in Debug build with Releasemano-wii
Prevents regression in unit tests.
2020-01-05Edit Mesh: Use multithreading in other parts of Auto Merge & Splitmano-wii
In the Auto Merge & Split feature, multithreading was only used to find duplicates between vertex and another vertex. But with this patch, multithreading is now used to find intersections etween edge and edge and between edge and vertex. In my tests I noticed a performance improvement of around 180% (0.017151 secs to 0.009373 secs) Differential Revision: https://developer.blender.org/D6528
2020-01-05Cleanup: warningCampbell Barton
2020-01-04Edit Mesh: Multithread support for Auto Merge & Splitmano-wii
Also collapsed edges are no longer used in the overlap test. This greatly improves peformanse for cases where the distance tested is relatively large.
2020-01-02EditMesh: Improve AutoMerge with Split Edges & Facesmano-wii
Previously, compared to `Auto Merge` without `Split Edges & Faces`, `Auto Merge` with this option ignored duplicates between selected vertices. It only considered duplicates between selected vertices and unselected vertices. This is a regress and not a progress. This commit implements this behavior, so this option matches the other `Auto Merge`.
2019-12-12BLI_bvhtree_overlap_ex: add 'max_interactions' parametermano-wii
No functional changes. Allows more performance control and is important for Weld Modifier.
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-10-01Fix T70328: Crash when editing loopcuts with AutoMerge & Split optionmano-wii
2019-09-14Cleanup: use const args, variablesCampbell Barton
2019-09-12BMesh: New tool `BM_mesh_intersect_edges`mano-wii
Along with the new utility `BM_vert_weld_linked_wire_edges_into_linked_faces`
2019-08-29Fix T56532: Boolean locks up BlenderCampbell Barton
Actual issue is with triangle beautify, avoid precision error by scaling the epsilon by the face area when it's over 1 The mesh in the report was very large (approx 2000 on each side), causing precision issues with a fixed epsilon.
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-16Cleanup: spellingCampbell Barton
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
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-07-07Cleanup: spellingCampbell Barton
2019-06-15Cleanup: spellingCampbell Barton
2019-05-31Cleanup: style, use braces in source/ (include disabled blocks)Campbell 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.