diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-18 04:28:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-18 04:28:23 +0400 |
commit | eb4bf9212be6e72f1fcad60cf5828364321f969a (patch) | |
tree | 8a1d49f0bf2055c9f32dd551255da075e7379e57 /source/blender/editors/space_view3d | |
parent | 0ac194687e3e872fe0f9df1fc95652c733d500af (diff) |
fix [#36758] Add Group Instance crash
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index e0b603d218b..5686c500270 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -4082,6 +4082,11 @@ void ED_view3d_cursor3d_position(bContext *C, float fp[3], const int mval[2]) float zfac; bool flip; + /* normally the caller should ensure this, + * but this is called from areas that aren't already dealing with the viewport */ + if (rv3d == NULL) + return; + zfac = ED_view3d_calc_zfac(rv3d, fp, &flip); /* reset the depth based on the view offset (we _know_ the offset is infront of us) */ |