Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-11-20 13:34:31 +0300
committerJoshua Leung <aligorith@gmail.com>2009-11-20 13:34:31 +0300
commit9672993bc1330a48e50ebc0f2f9742679085ed22 (patch)
tree38083ba132bfb751830979dec2ada240373fbd15 /source/blender
parent088c6d666671258adad2f23886f9af3fa2508645 (diff)
Attempted fix for #19870 - Crash on Shift Numpad 1 based on the backtrace http://www.pasteall.org/9114
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform_orientations.c6
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;
}