diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-19 20:28:53 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-19 20:28:53 +0300 |
commit | 1c590a4d06fa268003eff22a017895c190cffa69 (patch) | |
tree | 537202423bb98b3f695871990648199892cce75f /source/blender/editors/transform/transform_orientations.c | |
parent | bc63213844e723b0c552da446fb7fa9f9e7ea5f6 (diff) |
2.5
Quick bugfix; transform calls initTransformOrientation for all
spacetypes, it now returns except for view3d.
(Crash in grabbing nodes)
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 908357e8277..3cd24a31111 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -437,6 +437,8 @@ void initTransformOrientation(bContext *C, TransInfo *t) float normal[3]={0.0, 0.0, 0.0}; float plane[3]={0.0, 0.0, 0.0}; + if(v3d==NULL) return; + switch(v3d->twmode) { case V3D_MANIP_GLOBAL: strcpy(t->spacename, "global"); |