Fix #116275: Snap (align to target) crash without valid target location #116292

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:116275 into main 2023-12-18 14:18:50 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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);