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
2021-07-13Cleanup: replace BKE_customdata.h in BKE_editmesh.hCampbell Barton
Only DNA_customdata_types.h is needed for BMEditMesh.
2021-06-14Edit Mesh: use params arg for update function, add calc_normals argCampbell Barton
Rename function EDBM_update_generic to EDBM_update, use a parameters argument for better readability. Also add calc_normals argument, which will have benefits when calculating normals and tessellation together is optimized.
2021-03-31Fix T87080: Select shortest path fails in face modeCampbell Barton
Regression in 80cbbd2843c2358879b1a710d81a3b41e1468327. Unfortunately keeping selection picking behavior as well as supporting finding the nearest face within a radius requires an inconsistency between x-ray and back-buffer selection that doesn't work well using the current arguments. Resolve by adding an argument that causes the input distance to be ignored for back-buffer selection. This is used by selection picking but not the knife tool. This changes behavior for path-selection in face mode, which now uses a margin for back-buffer selection. From my own testing this doesn't seem to be a problem like it could be for regular selection picking.
2021-03-29Knife: support vert/edge snapping when not directly over a faceCampbell Barton
Respect the distance argument to EDBM_face_find_nearest, when zero, sample a single pixel, otherwise sample a region. Knife uses the selection-buffer to pick a face when the ray-cast failed. This was meant to allow snapping to nearby faces however as the margin was ignored, it was only used in edge cases where the ray-cast missed but the pixel didn't. Now the face-picking threshold is working as expected. Note that other callers to EDBM_face_find_nearest have been updated so set their distance argument to zero so this only impacts the knife. Regular selection and path select could be modified separately if users prefer this behavior.
2021-03-29Cleanup: logical error in path select pickingCampbell Barton
Resolve logical error in edbm_shortest_path_pick_invoke where any discrepancy between EDBM_unified_findnearest and edbm_elem_find_nearest caused the active-object to be cleared. While it's not a problem at the moment, using a larger threshold for path picking exposes the error.
2020-09-19Cleanup: consistent TODO/FIXME formatting for namesCampbell Barton
Following the most widely used convention for including todo's in the code, that is: `TODO(name):`, `FIXME(name)` ... etc.
2020-07-03Cleanup: Editors/Mesh, 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/editors/mesh` module. No functional changes.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-01-07Edit Mesh: pass in Mesh instead of BMEditMesh to EDBM_update_genericCampbell Barton
This avoids a list lookup in Main (recently added), passing in a mesh instead of an edit-mesh, since the mesh links to the edit-mesh.
2019-09-04Fix T55745: Checker de-select, inconsistent selectionYevgeny Makarov
With these changes, successive selections result in an even pattern.
2019-05-21Fix T64738: pick short path seam not doing live unwrapBrecht Van Lommel
2019-05-21UI: move edge-tag option from the scene into the operatorCampbell Barton
This was a very specific option to display in global tool settings. Now this is exposed in the operator when edge-select mode is enabled.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-22Cleanup: style, use braces for editorsCampbell 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-17Cleanup: rename Mesh.edit_btmesh -> edit_meshCampbell Barton
When bmesh was in a branch we had both edit_mesh and edit_btmesh, now there is no reason to use this odd name.
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-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2018-12-14Fix mesh select path not updating the gizmoCampbell Barton
2018-11-25Local ViewDalai Felinto
Bring back per-viewport localview. This is based on Blender 2.79. We have a limit of 16 different local view viewports. We are using both the numpad /, as well as the regular /. Missing features: * Hack to make sure lights are always visible. * Make rendered mode with external engines to support this as well (probably just need to support this in the RNA iterators). * Support over 16 viewports by taking existing viewports out of local view. The code can use a cleanup pass in the future to unify the test to see if an object is visible (or we can use TESTBASE in more places).
2018-09-25Edit Mesh: Move Edit Mesh display settings to overlay'sClément Foucault
This makes the Edit Mesh display settings common to all objects. They can also be set differently per viewport. Modifying extra data (seams, sharp edges etc...) will no longer set them automaticaly visible. Bumping version because we need to force set all extra draw options for older files.
2018-09-10Correct argument typeCampbell Barton
2018-09-10Edit Mesh: pass Base array to picking functionsCampbell Barton
In some cases we need to use this array afterwards, so this gives control over which objects are used for picking. Also use an index argument as return argument so callers that need to know the index in the array don't need to calculate it afterwards.
2018-09-10Cleanup: use function to set the active baseCampbell Barton
2018-08-22Improvement to MESH_OT_shortest_path_pick behaviourDalai Felinto
Select a vertex/edge/face if there was nothing previously selected (if the click hit something, of course).
2018-08-22Multi-Objects: MESH_OT_shortest_path_pickDalai Felinto
This fully works as "expected", however it seems strange when there is no selected vertex in the non-active object. In 2.7x if you join two monkeys, select a vertex in one of them and try to use this operator in the other it will select the lonely newly selected vertex. If you split both monkeys and do this in 2.8 while multi-editing them you won't get nothing when trying to ctrl+RMB any vertex in the monkey object that has nothing selected yet. I propose to have this addressed in an upcoming patch where we always select a vertex if no vertex was previously selected.
2018-08-21Fix crash in edbm_shortest_path_pick_exDalai Felinto
2018-08-13Merge branch 'master' into blender2.8Bastien Montagne
2018-08-13Fix T55745: Pick Shortest Path tool, inconsistent selection.Bastien Montagne
To get consistent, user-expected results here, we need to 'fake' starting immediately after a 'skip' block (such that we start with a full block of selected elements). Same issue affected vertices and edges selection of course, did not check the other usages of WM_operator_properties_checker_interval_test() though.
2018-05-24Multi-Object-Editing: MESH_OT_shortest_path_selectIsh Bosamiya
Note from revisor: Edit the error message to match the original one. Maniphest Tasks: T54643 Differential Revision: https://developer.blender.org/D3351
2018-04-16Depsgraph: remove EvaluationContext, pass Depsgraph instead.Brecht Van Lommel
The depsgraph was always created within a fixed evaluation context. Passing both risks the depsgraph and evaluation context not matching, and it complicates the Python API where we'd have to expose both which is not so easy to understand. This also removes the global evaluation context in main, which assumed there to be a single active scene and view layer. Differential Revision: https://developer.blender.org/D3152
2018-03-16Cleanup: doxy sections for editmesh files.Campbell Barton
2018-03-16Merge branch 'master' into blender2.8Campbell Barton
2018-02-13Object Mode: remove Scene.obeditCampbell Barton
Add ED_screen_window_find, BKE_workspace_edit_object
2017-10-19Merge branch 'master' into blender2.8Campbell Barton
2017-10-19Docs: correct descriptionsCampbell Barton
2017-08-16Pass EvaluationContext instead of bContextCampbell Barton
2.8x branch added bContext arg in many places, pass eval-context instead since its not simple to reason about what what nested functions do when they can access and change almost anything. Also use const to prevent unexpected modifications. This fixes crash loading files with shadows, since off-screen buffers use a NULL context for rendering.
2017-07-21Pass EvaluationContext argument everywhereLuca Rood
Note that some little parts of code have been dissabled because eval_ctx was not available there. This should be resolved once DerivedMesh is replaced.
2016-05-12BMesh: use active face fallback w/ select-pathCampbell Barton
From user perspective, last selected face is the same as the active face, use this as a fallback.
2016-04-01BMesh: improve path-select fill region w/ ngonsCampbell Barton
Rewrote to work with ngons and and more complex topology, now uses separate function. Fixes T48009.
2016-03-30Shortest Path Select: option to select all paths between 2 elementsCampbell Barton
This option selects all paths between source/destination which are no longer than the path found. Handy for selecting meshes with a grid-topology.
2016-03-05Cleanup: quiet -Wcomma, cast to void where neededCampbell Barton
2016-03-01Edit Mesh: Edge tag toggle when no active path is foundCampbell Barton
User request, this matches 2.6x behavior more closely.
2015-12-28Fix possible invalid-index use /w link/path selectCampbell Barton
2015-12-27BMesh Path Select: Face Stepping OptionCampbell Barton
Supports diagonal paths for verts and faces, Selects edge-rings with edges.
2015-12-27BMesh Path Select: Add checker-select optionsCampbell Barton
Allows to quickly select alternate elems in a path (matching checker-deselect options). - adds redo support to MESH_OT_shortest_path_pick, allowing for other options. - de-duplicates code between 2x path select operators. - expose 'Topology Distance' property for path picking. - remove unused 'extend' property.
2015-04-20Fix T44383: Select face fails in some positionsCampbell Barton
When mixing vert/edge/face with select-visible, face selection could fail when not close enough to the center. This also fixes a bug where the bias for verts over edges would prefer faces over edges too, making edges harder to pick. Mixing edge with other selection modes works more predictably now.
2014-11-28Cleanup: unused headersCampbell Barton