Fix #116275: Snap (align to target) crash without valid target location #116292
@ -270,7 +270,7 @@ void drawSnapping(TransInfo *t)
|
||||
rv3d, source_loc, target_loc, t->tsnap.source_type, t->tsnap.target_type, col, activeCol);
|
||||
|
||||
/* Draw normal if needed. */
|
||||
if (usingSnappingNormal(t) && validSnappingNormal(t)) {
|
||||
if (usingSnappingNormal(t) && validSnappingNormal(t) && target_loc) {
|
||||
uint pos = GPU_vertformat_attr_add(
|
||||
immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user