[Bf-blender-cvs] [abc90d6b036] master: Fix T80931: Proporional Editing Cursor Draws Incorrect
Jeroen Bakker
noreply at git.blender.org
Mon Sep 21 11:42:06 CEST 2020
Commit: abc90d6b036dce1b5003d487a266b8d48126fa1c
Author: Jeroen Bakker
Date: Mon Sep 21 11:39:32 2020 +0200
Branches: master
https://developer.blender.org/rBabc90d6b036dce1b5003d487a266b8d48126fa1c
Fix T80931: Proporional Editing Cursor Draws Incorrect
The incorrect view was setup so it was drawn in pixel space. This patch
changes it to use UV space.
===================================================================
M source/blender/draw/intern/draw_manager.c
===================================================================
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index df1f4d8f405..d51042d4ae6 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -2096,17 +2096,16 @@ void DRW_draw_render_loop_2d_ex(struct Depsgraph *depsgraph,
GPU_framebuffer_bind(dfbl->overlay_fb);
+ GPU_depth_test(GPU_DEPTH_NONE);
+ GPU_matrix_push_projection();
+ wmOrtho2(
+ region->v2d.cur.xmin, region->v2d.cur.xmax, region->v2d.cur.ymin, region->v2d.cur.ymax);
if (do_annotations) {
- GPU_depth_test(GPU_DEPTH_NONE);
- GPU_matrix_push_projection();
- wmOrtho2(
- region->v2d.cur.xmin, region->v2d.cur.xmax, region->v2d.cur.ymin, region->v2d.cur.ymax);
ED_annotation_draw_view2d(DST.draw_ctx.evil_C, true);
- GPU_matrix_pop_projection();
}
-
GPU_depth_test(GPU_DEPTH_NONE);
ED_region_draw_cb_draw(DST.draw_ctx.evil_C, DST.draw_ctx.region, REGION_DRAW_POST_VIEW);
+ GPU_matrix_pop_projection();
/* Callback can be nasty and do whatever they want with the state.
* Don't trust them! */
DRW_state_reset();
More information about the Bf-blender-cvs
mailing list