correct assert for customdata overlap, also quiet `uninitialized` warning in transform.
[blender.git] / source / blender / editors / transform / transform.c
index 284c670fa082ee6a7e63c47b7cb7d50e19acd3ab..8259ca64badc8386a8c33835e1c2cf7bf8472cb7 100644 (file)
@@ -208,6 +208,11 @@ void convertViewVec(TransInfo *t, float r_vec[3], int dx, int dy)
                        /* TODO - NOT WORKING, this isnt so bad since its only display aspect */
                        ED_space_clip_get_aspect(t->sa->spacedata.first, &aspx, &aspy);
                }
+               else {
+                       /* should never happen, quiet warnings */
+                       BLI_assert(0);
+                       aspx = aspy = 1.0f;
+               }
 
                r_vec[0] *= aspx;
                r_vec[1] *= aspy;