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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-22 12:14:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-22 12:14:27 +0300
commitcfc904f3f1a00556032e12bb72395e261574669b (patch)
treed59327ccc718a75a0435b27fa873c7e3f342ddc6 /source/blender/editors/transform/transform.c
parenta1567aa7c081ce6a3c7b24b7a772323940faa437 (diff)
- support transform operators running in backgruond mode (was crashing)
- fix for crash getting the extrude mode enum value when a non-mesh edit object was active.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index e342ce6769a..0a055358902 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -4298,7 +4298,7 @@ static int createSlideVerts(TransInfo *t)
int uvlay_tot= CustomData_number_of_layers(&em->fdata, CD_MTFACE);
int uvlay_idx;
TransDataSlideUv *slideuvs=NULL, *suv=NULL, *suv_last=NULL;
- RegionView3D *v3d = t->ar->regiondata;
+ RegionView3D *v3d = t->ar ? t->ar->regiondata : NULL; /* background mode support */
float projectMat[4][4];
float start[3] = {0.0f, 0.0f, 0.0f}, end[3] = {0.0f, 0.0f, 0.0f};
float vec[3];