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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-19 20:28:53 +0300
committerTon Roosendaal <ton@blender.org>2009-01-19 20:28:53 +0300
commit1c590a4d06fa268003eff22a017895c190cffa69 (patch)
tree537202423bb98b3f695871990648199892cce75f /source
parentbc63213844e723b0c552da446fb7fa9f9e7ea5f6 (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')
-rw-r--r--source/blender/editors/transform/transform_orientations.c2
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");