diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-11-20 13:34:31 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-11-20 13:34:31 +0300 |
commit | 9672993bc1330a48e50ebc0f2f9742679085ed22 (patch) | |
tree | 38083ba132bfb751830979dec2ada240373fbd15 /source/blender/editors/transform/transform_orientations.c | |
parent | 088c6d666671258adad2f23886f9af3fa2508645 (diff) |
Attempted fix for #19870 - Crash on Shift Numpad 1 based on the backtrace http://www.pasteall.org/9114
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 463af961682..8847d0ccd58 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -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; } |