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-12-14Fix T83725 Inconsistent vertex group between exact and fast boolean.Howard Trickey
This makes the exact boolean have zero weights for any vertex groups on any newly created vertices, which is what the fast solver does. The exact boolean solver was interpolating vertex data when interpolating loop data in newly created faces. Not sure why I chose that. The Fast boolean solver doesn't do that, so I stopped doing it too.
2020-12-05Add more timing hooks for boolean.Howard Trickey
2020-12-04Fix API doc generation.Bastien Montagne
BMesh auto-extracting API info does not support comments inside BMesh operators parameters definition.
2020-12-03Fix accendental copy/paste errors after last commitAaron Carlisle
2020-12-03Bmesh: Improve documentation of op parametersAaron Carlisle
These comments are used to generate Py API docs. Most of the comments are just copies of the mesh operator counterparts. More improvements can be made here in the future. Thanks to Jon Denning on twitter: https://twitter.com/gfxcoder/status/1334178566993555459
2020-11-24Speedups for new boolean. Better hash function for verts.Howard Trickey
The existing hash function didn't work well with Set's method of masking to the lower bits, because many verts have zeros in the lower bits. Also, replaced VectorSet with Set for Vert deduping.
2020-11-19Cleanup: Grammar: "Allow to" vs gerundHans Goudey
In cases where "Allow" is followed by an infinitive, a noun needs to directly follow it. But it makes more sense to follow it with a gerund instead.
2020-11-17Cleanup: Clang tidy inconsistent parameter nameHans Goudey
2020-11-17Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-17Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-17BMesh: support for comparing loops when calculating face-groupsCampbell Barton
Add an optional callback to check source/destination loops for BM_mesh_calc_face_groups. This is needed so it can be used to calculate UV islands.
2020-11-17BMesh: add UV face transform and minmax utility functionsCampbell Barton
2020-11-12Merge branch 'blender-v2.91-release'Howard Trickey
2020-11-12Fix T80475, bad bevel: side vertex in bad plane in some cases.Howard Trickey
Needed a better normal to for plane to offset into when there are non in-plane edges between two beveled edges. It was using the vertex normal, which is just wrong. Differential Revision: https://developer.blender.org/D9508
2020-11-09Merge branch 'blender-v2.91-release'Brecht Van Lommel
2020-11-09Cleanup: Clang-tidy, inconsistent parameter nameAnkit Meel
readability-inconsistent-declaration-parameter-name
2020-11-09Fix T80068: skin modifier not working with motion blurBrecht Van Lommel
The skin modifier did not output consistent results, causing failure to find corresponding vertices across frames. Remove unnecessary use of GSet, all we need is an array.
2020-11-09Cleanup: fix some clang tidy issuesJacques Lucke
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-07Cleanup: Clang-tidy, modernize-concat-nested-namespacesAnkit Meel
2020-11-06Cleanup: Clang-Tidy modernize-use-nullptrSybren A. Stüvel
Replace `NULL` with `nullptr` in C++ code. No functional changes.
2020-11-06Cleanup: Use descriptive variable namesHans Goudey
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-06Cleanup: BLI_noiseCampbell Barton
Use common prefix as this collided with existing API's (eg BLI_voronoi). Also expand some non-obvious abbreviations: - 'g' -> 'generic' - 'vl' -> 'variable_lacunarity' - 'V' -> 'v3'
2020-11-06Cleanup: use string APPEND/PREPENDCampbell Barton
Replace 'set' with 'string(APPEND/PREPEND ...)'. This avoids duplicating the variable name.
2020-11-05Spelling: Predefined, Look Up, No OneHarley Acheson
Fixes 18 misspellings of 'predefined', 'Look Up', 'Lookup', and 'No One'. Differential Revision: https://developer.blender.org/D9466 Reviewed by Hans Goudey
2020-11-03Cleanup: Use typedef for bevel angle kind enumHans Goudey
This makes debugging slightly easier, and makes the code slightly more explicit about its intentions.
2020-11-03Merge branch 'blender-v2.91-release'Hans Goudey
2020-11-03Fix T82120: Arc miter bevel creates miters on straight edgesHans Goudey
In some situations where two beveled edges were very close to in-line but not quite straight, bevel would build a miter when it shouldn't. The code that chose whether to use a miter at each vertex was slightly incorrect. For outer miters there is a check for 3 or more selected edges, but an inner miter can still be useful with only two beveled edges at a vertex, so we can't use that here. Instead I changed the check for in-line edges to run before determining whether the angle is reflex or not. The logic ends up a bit more straightforward as well. This doesn't completely remove the rather strange looking triangle vertex meshes at each corner, but it does make it stable when locations are slightly adjusted. The only other place this `edges_angle_kind` function was used is for profile=1.0 vertex meshes. I tested and made sure that still works well. Differential Revision: https://developer.blender.org/D9420
2020-10-27Cleanup: use over-line for doxy commentsCampbell Barton
Follow our code style for doxygen sections.
2020-10-24Fix T81884, clamping with percent, addendum.Howard Trickey
The previous fix forgot the case where there is an intermediate edge and everything isn't in one plane.
2020-10-24Fix T81884, clamping with percent, addendum.Howard Trickey
The previous fix forgot the case where there is an intermediate edge and everything isn't in one plane. Differential Revision: https://developer.blender.org/D9336
2020-10-22Fix T81939: crash calling bmesh.utils.vert_separate()Campbell Barton
Missing NULL check in bmesh_kernel_vert_separate.
2020-10-20Fix T81865, T81860: CustomData Correction can fail on non standard namesPhilipp Oeser
Caused by rBaafd71a8a160. In the process of CustomData Correction, we need to make sure we also have matching layer names [as was done before above commit], otherwise this will create layers with default names, applying (mesh_customdatacorrect_apply and friends) will fail then. Maniphest Tasks: T81865 Differential Revision: https://developer.blender.org/D9278
2020-10-19Spelling: Apart Versus A PartHarley Acheson
Corrects incorrect usages of the fragment 'apart of' when 'a part of' was required. Differential Revision: https://developer.blender.org/D9245 Reviewed by Campbell Barton
2020-10-19Spelling: Loose Versus LoseHarley Acheson
Corrects incorrect usages of the word 'loose' when 'lose' was required. Differential Revision: https://developer.blender.org/D9243 Reviewed by Campbell Barton
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-19Silence an unused variable warning in bmesh_bevel.c.Howard Trickey
2020-10-19Cleanup: clang tidyJacques Lucke
2020-10-18Fix Bevel percent mode, and clamping for it too (T79898).Howard Trickey
The code for Bevel's percent (and absolute) modes were pretty bogus. It assumed, like the rest of the modes, that the offset lines are parallel to the beveled edge. Which is not true for these modes, though it accidentally works sometimes if the legs are equilength. Also the clamping code for those modes was completey wrong. It is too hard to really fix the clamping code for absolute mode, but it is a little better now. Percent mode clamping is fixed.
2020-10-14Cleanup: spellingCampbell Barton
2020-10-12Fix T81060: CustomData Correction sometimes breaks UVs and Vertex ColorsGermano Cavalcante
`CustomData_bmesh_interp` use the same CustomData decryptor (in this case, `bm->ldata`) in both blocks. So make sure that all CustomData layers match. This commit also removes redundant `BM_elem_attrs_copy_ex` calls. Maniphest Tasks: T81060 Differential Revision: https://developer.blender.org/D9159
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-10-03Cleanup: Remove/replace C standard library assert() and header usagesJulian Eisel
We have our own assert implementation, `BLI_assert()` that is prefered over the C standard library one. Its output is more consistent across compilers and makes termination on assert failure optional (through `WITH_ASSERT_ABORT`). In many places we'd include the C library header without ever accessing it.
2020-09-30Cleanup: convert gforge task ID's to phabricator formatValentin
Cleanup old tracker task format to the new. e.g: [#34039] to T34039 Ref D8718
2020-09-21Fix T80520: Tris to Quads ignores UV delimit optionmano-wii
2020-09-15BMesh: avoid negative array access in shape-key conversionCampbell Barton
2020-09-15Cleanup: remove redundant indexing valueCampbell Barton