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-06-09Fix T76894: Disable clipping region selection in material/rendered modeJeroen Bakker
In this case the draw engine isn't responsible for the selection, but the editor is. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D7955
2020-05-12Fix EDBM_selectmode_disable_multi_ex return valueAnthony Edlin
This always return changed, even when no changes were made.
2020-04-24Fix edit-mesh moving from edge to face mode with Ctrl heldCampbell Barton
Faces could be selected without any of their edges or vertices selected.
2020-04-07Fix T75128: Select Linked fails when the selection is a delimiterCampbell Barton
Starting select linked failed when the selected vertex or edge was it's self delimiting. Support using these elements for linked select as long as they're part of an isolated selection.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-01-13Fix T72250: Select Boundary LoopJeroen Bakker
Edge Index display were not showing up after performing "Select Boundary Loops" when in face selection mode. The operation tagged the mesh that the selection was changed, but in the end this didn't do anything within the depsgraph. The fix changes this to recalc the geometry of the object. What also syncs the selectmode flags. A better solution would be to update the select flags only. But that could be done as future work when we have a performance problems.
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.
2020-01-07BMesh: remove BMEditMesh.ob use for select mirrorCampbell Barton
2019-11-27Add 'EDBM_selectmode_disable_multi' and use in knifeprojectPhilipp Oeser
As a followup to rB6f4e595e9ba9 and as per @campbellbarton suggestion, this adds EDBM_selectmode_disable_multi, similar to EDBM_mesh_deselect_all_multi & EDBM_mesh_deselect_all, so other similar uses don't need to be done in a loop. Also, selected_objects isn't a reliable way to handle this case - since objects can be in edit-mode & not selected, use BKE_view_layer_array_from_bases_in_edit_mode_unique_data instead Differential Revision: https://developer.blender.org/D6317
2019-11-24Cleanup: spelling, repeated wordsCampbell Barton
2019-09-18Fix excessive dependency graph evaluation while painting strokesBrecht Van Lommel
Particularly noticeable when vertex painting with a subsurf modifier. In some cases every sculpt or paint stroke step would evaluate the dependency graph. This should only happen for redraws. Now more selectively choose if the dependency graph should be evaluated to initialize the view context. Doing it in the view context evaluation is somewhat hidden, now it's more explicit. Differential Revision: https://developer.blender.org/D5844
2019-09-08Edit Mesh: select interior faces now detects regionsCampbell Barton
The previous method only worked in simple cases where faces were surrounded by non-manifold edges. Now face regions surrounded by non-manifold edges are marked as interior. Starting with regions most perpendicular to the surrounding geometry. Resolves T68401
2019-09-05Object: Mode switching operatorCampbell Barton
Remove unused OBJECT_OT_mode_set_or_submode, add OBJECT_OT_mode_set_with_submode which can switch to edit mode as well as a sub-mode - currently only mesh select mode is supported (others may be added later).
2019-09-05Cleanup: reuse mesh select mode enumCampbell Barton
2019-09-04Fix T55745: Checker de-select, inconsistent selectionYevgeny Makarov
With these changes, successive selections result in an even pattern.
2019-08-29Cleanup: unused warningCampbell Barton
2019-08-28Cleanup: split automerge logic into own fileCampbell Barton
This isn't closely related to selection & this file was over 5k lines.
2019-08-27Edit Mesh: Poly build tool improvementsPablo Dobarro
This commit changes the functionality of the Poly build tool to make it more suitable for retopology tasks: - Click and drag from a boundary edge extrudes a new quad - Click and drag on vertices tweaks the position - Ctrl + click adds geometry. There is a geometry preview in the gizmo. It also can automatically convert triangles to quads. - Shift + click deletes mesh elements (faces or vertices) - Updated preselection code. Different mesh elements take priority depending on the selected action. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D5573
2019-08-27Cleanup: rename max_len -> alloc_lenCampbell Barton
2019-08-27Cleanup: struct member name wasn't descriptiveCampbell Barton
2019-08-27Cleanup: unused warningCampbell Barton
2019-08-27Edit Mesh AutoMerge: Improve `Split Edges & Faces` optionmano-wii
Now all wire edges linked to the merged vertex are used for split faces. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5603
2019-08-26Edit Mesh: New option "Split Edges & Faces" to "AutoMerge"mano-wii
Ref T66423 Differential revision: https://developer.blender.org/D5562
2019-08-15Edit Mesh Selection: Refactor: Redraw idmap buffer at runtime with only ↵mano-wii
objects inside the rect But in the future the selection code may also be used in object mode (eg for snapping). So to avoid using too much VRAM resources, it is good to avoid drawing all objects in the viewport. The solution was to create an array with only objects that are detected within the selection area. If the selection operator is modal, objects already detected are not removed from the array until view3d is moved or orbited. To detect the object, its BoundBox is tested. Since the Select Engine does not have a dedicated depth texture, whenever a new object is "found" the depth of the objects in the array already drawn is redrawn. Reviewers: campbellbarton, fclem Reviewed By: fclem Differential Revision: https://developer.blender.org/D5435
2019-08-07Edit Mesh Selection: Move ED_view3d_select_ functions to bf_drawmano-wii
It is easier to deal with private values of the DRW_select engine and gives room for improvement. Reviewers: campbellbarton, fclem Differential Revision: https://developer.blender.org/D5415
2019-08-02Edit Mesh Select: Remove redundant and deprecated `FAKE_SELECT_MODE_...`mano-wii
2019-07-303D View: Move selection API to a Selection engine.mano-wii
This commit moves the API of selecting faces, vertices and edges to a DRW manager engine. Reviewers: campbellbarton, fclem Subscribers: jbakker, brecht Differential Revision: https://developer.blender.org/D5090
2019-06-14Mesh Selection: Move Selection ID Context Utilities to ED_view3d.mano-wii
This patch does not bring functional changes, but it is a good change if we want to use these utilities in areas other than those using BMesh (eg painting editors). This is also a step to replace `ED_view3d_select_id_validate`. That function erroneously checks `V3D_INVALID_BACKBUF` which causes it to update unnecessarily. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5072
2019-06-01Fix T65330: Blender crash when double click on faceDalai Felinto
The fix itself is by Germano Cavalcante (mano-wii). But since I was investigating this with him, I'm including here an assert in EDBM_select_id_bm_elem_get to help catching this sooner in the future
2019-05-28Fix show face-dot checkCampbell Barton
Match edit-mesh drawing.
2019-05-27Cleanup: Fix warning in bf_editor_meshRay Molenkamp
Declaration and implementation of EDBM_select_id_context_create got out of sync leading to warning with msvc.
2019-05-23Fix T65002: after hiding edit mode object, clicking in wireframe mode crashesGeorge Vogiatzis
Differential Revision: https://developer.blender.org/D4926
2019-05-20Cleanup: move selection utilities into ED_select_buffer_utilsCampbell Barton
2019-05-20Cleanup: remove EDBM_backbuf APICampbell Barton
2019-05-19Edit Mesh Select: Fix/update to new logic.mano-wii
2019-05-18Fix T54686: objects don't occlude each other for edit-mesh select (part 2)Campbell Barton
The previous fix 8a6414ed46f66, resolved selection picking but didn't work for box/circle/lasso select. - Add ED_select_buffer_utils.h for general select-buffer operations unrelated to edit-mesh. - Circle select still needs to cache select-id's for each update.
2019-05-18Cleanup: remove unused argumentCampbell Barton
2019-05-17Fix T64759: Pick select selects an incorrect face in edit mode.mano-wii
Bug introduced in T64759.
2019-05-17Mesh Select: use select context instead of static structsmano-wii
This patch does not bring any functional change, but it does expose some utilities that can be very useful to correct occlusion and performance problems of Circle Select and similar. Creating a selection context still makes it easier to track issues.
2019-05-16Fix edit-mesh face-dot drawing checkCampbell Barton
Since 8a6414ed46f66 the old logic no longer applies.
2019-05-16Fix T64687: Loop select work only with edgesCampbell Barton
Regression in recent commit 8a6414ed46f66
2019-05-16Fix unreported: Presselection cycle not working in multiple meshes editing.mano-wii
2019-05-16ClangFormat: remove FAKE_SELECT_MODE_BEGIN from ForEachMacrosCampbell Barton
This isn't used for looping.
2019-05-16Fix T54686: objects don't occlude each other for edit-mesh selectmano-wii
2019-04-29Cleanup: comments (long lines) in editorsCampbell Barton
2019-04-22Cleanup: style, use braces for editorsCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell 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-04-11Fix T63467: Edge/vertex selection isnt working properly with X-ray set to 1Sebastian Parborg
Edit mode shows the mesh elements in X-ray mode even if alpha is set to 1. Now the code takes this into account so that you can still select visible mesh elements in X-ray edit mode. view3d_draw_legacy need to be updated with the new XRAY flag macros to avoid crashes. Additional cleanup of the XRAY macro flags were done.