Germano Cavalcante
d33eb78de3
3D View: Do not recalculate the depth buffer for 'Auto Depth'
...
This is a solution to avoid redrawing the depth buffer for each Zoom
with `Auto Depth`.
The solution is to move the `ED_view3d_depth_override` function out of
`ED_view3d_autodist`.
`ED_view3d_depth_override` is now only called for navigation operations
if it does not meet the following condition:
```
bool has_depth_buffer = !(v3d->flag2 & V3D_HIDE_OVERLAYS) ||
ELEM(v3d->shading.type, OB_SOLID, OB_MATERIAL) ||
XRAY_FLAG_ENABLED(v3d) ||
v3d->shading.type == OB_RENDER &&
(strcmp(DEG_get_evaluated_scene(depsgraph)->r.engine,
RE_engine_id_BLENDER_EEVEE) == 0 ||
strcmp(DEG_get_evaluated_scene(depsgraph)->r.engine,
RE_engine_id_BLENDER_WORKBENCH) == 0);
```
2023-09-28 13:30:14 -03:00
..
2023-08-04 22:15:25 -04:00
2023-09-26 17:06:35 +02:00
2023-08-29 14:31:18 +02:00
2023-09-11 08:20:39 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-08 16:40:59 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 21:58:30 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-13 02:25:03 +02:00
2023-09-21 15:11:16 +02:00
2023-09-13 02:25:03 +02:00
2023-09-08 17:12:29 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-29 06:33:21 +02:00
2023-08-16 00:20:26 +10:00
2023-09-26 15:39:32 -04:00
2023-08-16 00:20:26 +10:00
2023-09-25 21:58:30 -04:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-04 22:15:25 -04:00
2023-08-04 22:15:25 -04:00
2023-08-16 00:20:26 +10:00
2023-08-28 17:25:18 +10:00
2023-08-26 19:02:02 +10:00
2023-09-26 17:12:37 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-27 01:45:59 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-25 10:25:58 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-18 17:29:41 +02:00
2023-08-31 15:31:05 -03:00
2023-08-16 00:20:26 +10:00
2023-09-28 13:30:14 -03:00
2023-09-27 11:09:39 +02:00
2023-08-25 16:00:05 +02:00
2023-09-21 17:42:37 +02:00
2023-08-16 00:20:26 +10:00
2023-09-27 15:46:18 +02:00
2023-09-01 21:37:11 +02:00
2023-09-08 16:53:30 +10:00
2023-08-14 12:06:35 +02:00
2023-09-25 10:56:12 +02:00
2023-09-01 23:07:51 -04:00
2023-08-16 00:20:26 +10:00