diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-20 20:02:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-20 20:02:24 +0300 |
commit | 2ed547be4dbff959aaf2576bf077a957964e2b5f (patch) | |
tree | 2e70ba7936db444cca0a05d704c10551758a0977 /source/blender/editors/transform/transform_snap.c | |
parent | 0c3e5dec93759f3d557e6c1746e80c2cf5b74f06 (diff) |
bugfix [#20743] crash on box select and grab with this .blend
Diffstat (limited to 'source/blender/editors/transform/transform_snap.c')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index b4894ecdcaa..bae3c790684 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1578,9 +1578,10 @@ int snapObjects(Scene *scene, View3D *v3d, ARegion *ar, Object *obedit, float mv * * To solve that problem, we do it first as an exception. * */ - if(BASACT->object && BASACT->object->mode & OB_MODE_PARTICLE_EDIT) + base= BASACT; + if(base && base->object && base->object->mode & OB_MODE_PARTICLE_EDIT) { - Object *ob = BASACT->object; + Object *ob = base->object; retval |= snapObject(scene, ar, ob, 0, ob->obmat, ray_start, ray_normal, mval, loc, no, dist, &depth); } |