[Bf-blender-cvs] [323c5e1e0bc] master: Fix T78494: Edge slide crashes
Campbell Barton
noreply at git.blender.org
Wed Jul 1 13:31:22 CEST 2020
Commit: 323c5e1e0bc728e81dbc1f048cb9653cf905c984
Author: Campbell Barton
Date: Wed Jul 1 21:28:27 2020 +1000
Branches: master
https://developer.blender.org/rB323c5e1e0bc728e81dbc1f048cb9653cf905c984
Fix T78494: Edge slide crashes
Introduced in recent commit 9c29803255e09.
===================================================================
M source/blender/editors/transform/transform_mode_edge_slide.c
===================================================================
diff --git a/source/blender/editors/transform/transform_mode_edge_slide.c b/source/blender/editors/transform/transform_mode_edge_slide.c
index bad24cfc86c..ed22afc404e 100644
--- a/source/blender/editors/transform/transform_mode_edge_slide.c
+++ b/source/blender/editors/transform/transform_mode_edge_slide.c
@@ -1252,11 +1252,14 @@ void drawEdgeSlide(TransInfo *t)
TransDataEdgeSlideVert *curr_sv = &sld->sv[sld->curr_sv_index];
const int alpha_shade = -160;
+ float co_dir[3];
+ add_v3_v3v3(co_dir, curr_sv->v_co_orig, curr_sv->dir_side[sld->curr_side_unclamp]);
+
GPU_line_width(line_size);
immUniformThemeColorShadeAlpha(TH_EDGE_SELECT, 80, alpha_shade);
immBeginAtMost(GPU_PRIM_LINES, 2);
- immVertex3fv(pos, curr_sv->v_side[sld->curr_side_unclamp]->co);
immVertex3fv(pos, curr_sv->v_co_orig);
+ immVertex3fv(pos, co_dir);
immEnd();
}
More information about the Bf-blender-cvs
mailing list