Blender Git Loki
Git Commits -> Revision 7878adf
Revision 7878adf by Jeroen Bakker (master) December 11, 2019, 15:58 (GMT) |
DrawManager: Disable Clipping in material/rendered mode Viewport: Disable Clipping For EEVEE and External Renderers Currently it is possible that, when using viewport clipping, the display and tools communicate different information to the user then the renderer does. The reason is that the renderer does not support viewport clipping. Both EEVEE and Cycles do not support it. This patch will disable the clipping in all the tools and drawing code when the viewport drawing mode is `Material Preview` or `Rendered`. This patch introduces a `RV3D_CLIPPING_ENABLED` util that checks if clipping is enabled for the given `rv3d` and `v3d`. Also in places where it was needed we added the `ViewContext` as a carrier for the `View3D` and `RegionView3D`. There are a few areas in the tooling (select, projection painting) that still needs to be tackled after this patch. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6047 |
Commit Details:
Full Hash: 7878adf49cfff6ccbb18203f21c6355a518b34db
Parent Commit: 61e0e93
Lines Changed: +48, -38
16 Modified Paths:
/source/blender/blenkernel/BKE_paint.h (+3, -0) (Diff)
/source/blender/draw/DRW_engine.h (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_data.c (+11, -12) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_manager.c (+5, -5) (Diff)
/source/blender/draw/intern/draw_manager_text.c (+3, -3) (Diff)
/source/blender/draw/intern/draw_manager_text.h (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+6, -5) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+5, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw_legacy.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+3, -0) (Diff)
/source/blender/draw/DRW_engine.h (+1, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_data.c (+11, -12) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_manager.c (+5, -5) (Diff)
/source/blender/draw/intern/draw_manager_text.c (+3, -3) (Diff)
/source/blender/draw/intern/draw_manager_text.h (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+6, -5) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+5, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_draw_legacy.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+3, -0) (Diff)