Attempted fix for #19870 - Crash on Shift Numpad 1 based on the backtrace http://www.pasteall.org/9114

This commit is contained in:
2009-11-20 10:34:31 +00:00
parent 088c6d6666
commit 9672993bc1

View File

@@ -916,8 +916,10 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
}
}
VECCOPY(normal, ob->obmat[2]);
VECCOPY(plane, ob->obmat[1]);
if (ob) {
VECCOPY(normal, ob->obmat[2]);
VECCOPY(plane, ob->obmat[1]);
}
result = ORIENTATION_NORMAL;
}