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:
authorCampbell Barton <ideasman42@gmail.com>2013-09-18 04:28:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-18 04:28:23 +0400
commiteb4bf9212be6e72f1fcad60cf5828364321f969a (patch)
tree8a1d49f0bf2055c9f32dd551255da075e7379e57 /source
parent0ac194687e3e872fe0f9df1fc95652c733d500af (diff)
fix [#36758] Add Group Instance crash
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c5
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) */