7c08cddedb
Fix unassigned return argument in recent select refactor
2019-08-08 04:36:43 +10:00
764cc75e1f
Edit Mesh Selection: Move ED_view3d_select_ functions to bf_draw
...
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-07 12:43:31 -03:00
9d7d34c12a
Select utils refactor: remove lagacy ED_view3d_select_id_read_rect
...
`ED_view3d_select_id_read_rect` serves only as a bridge to `DRW_framebuffer_select_id_read`.
Keeping these codes similar only increases the complexity of some functions.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D5415
2019-08-07 12:43:31 -03:00
f4e27bc2c9
Fix not reported: Face selection sometimes does not work in weight, paint and texture mode.
2019-08-06 17:27:00 -03:00
5ba070ce53
DRW: Select Engine: Create DRWPass only when context requests it
2019-08-02 12:14:12 -03:00
8fbe18dc8d
DRW: Select Engine: Set uniform only once per ShadowGroup
2019-08-02 10:48:16 -03:00
c060a835bb
Fix unreported: Selection of mesh_cage element occluded by the mesh_cage itself.
...
The right thing is to be occluded by the visible mesh (in the case with modifiers).
2019-08-01 23:19:00 -03:00
53a0916636
DRW: Select Engine: Add a utility to detect select_node
2019-08-01 23:00:34 -03:00
eff91da4df
DRW: Select Engine: Use specified offset.
...
Due to current uses, this does not bring functional changes.
2019-08-01 23:00:34 -03:00
abebb27644
DRW: Select Engine: remove unnecessary DRWShadingGroup creations
2019-08-01 23:00:34 -03:00
49b2162309
Cleanup: remove unnecessary include
2019-08-01 11:31:25 -03:00
eb7fe7546c
Fix T68055: mesh selection issues, once blend is loaded second time in a Blender session
...
The depth attachment of the framebuffer was missing.
2019-08-01 08:30:57 -03:00
421280a3f7
Cleanup: remove unused member
2019-07-31 22:46:41 -03:00
af4dcc6073
DRW manager: select engine: create generic draw_select_id_mesh
2019-07-30 20:47:18 -03:00
43ec8d7ae9
Cleanup: Rearrange Select Engine into multiple files
2019-07-30 20:47:18 -03:00
fe47c7bf84
DRW manager: select engine: remove redundant calls
2019-07-30 16:32:08 -03:00
651d8bfd98
3D View: Move selection API to a Selection engine.
...
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-07-30 06:46:59 -03:00
795e839d3b
Cleanup: rename select engine -> basic
...
This is used by depth drawing too and had no selection specific code.
2017-04-27 02:51:07 +10:00
edd1512741
Draw Manager: cleanup, use doxy categories
...
Also add DRW_state for accessing current draw state.
2017-04-27 02:04:56 +10:00
ab168f63f6
Remove show_backface_culling check in select engine
...
May add back so selection engine can read backface cull state
from from different engines.
2017-04-26 18:08:49 +10:00
3f91567052
Cleanup: draw engine
...
- use DRW_engine prefix for engine types.
- use engine suffix for files that define a draw engine.
- remove engines from include path (they're only referenced once)
2017-04-26 17:42:39 +10:00
bfc2043332
Draw Manager: add select engine
...
This does very little currently, but allows changing behavior for
selection drawing in the future.
2017-04-26 17:25:41 +10:00