diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-08-17 06:50:02 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-08-17 06:50:02 +0300 |
commit | 9503751c83345b2941a4fc41dcc979ef456b0c5f (patch) | |
tree | 3fadb7567304a58ba233c32e017fb2f8f5f41bca /source/blender/draw/engines | |
parent | dcaba4c5e3494240464ed6cc6330f40c30ba0e0e (diff) |
Sculpt dyntopo
* Added a limited "fast draw" mode to pbvh drawing
that tries to limit data sent to the GPU.
- Facesets and mask data are disabled.
- Indexed mode is forced.
- Does not work (at all) for multires.
* Finally fixed some outstanding bmesh sculpt undo bugs:
- Forgot to mark pbvh nodes to update their bounds, which
produced a bug I had thought was caused by something else.
- Hopefully fixed a long-standing occasional memory corruption
bug.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_sculpt.c b/source/blender/draw/engines/overlay/overlay_sculpt.c index 24c52ec427d..24ff807bba8 100644 --- a/source/blender/draw/engines/overlay/overlay_sculpt.c +++ b/source/blender/draw/engines/overlay/overlay_sculpt.c @@ -60,7 +60,7 @@ void OVERLAY_sculpt_cache_populate(OVERLAY_Data *vedata, Object *ob) return; } - if (!pbvh_has_mask(pbvh) && !pbvh_has_face_sets(pbvh)) { + if (!BKE_pbvh_draw_mask(pbvh) && !BKE_pbvh_draw_face_sets(pbvh)) { /* The SculptSession and the PBVH can be created without a Mask data-layer or Face Set * data-layer. (masks data-layers are created after using a mask tool), so in these cases there * is nothing to draw. */ |