diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-18 16:40:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-18 16:41:51 +0300 |
commit | 3b209a45de420a4e4e98ab71c6e1c521612171fa (patch) | |
tree | 43efd2be3378d58a9850eaf2b4a911c51872d6e9 /source/blender/editors/space_view3d/view3d_walk.c | |
parent | 21081429347e274de29040c04c377ddce5d060ef (diff) |
Fix missing initialization of depsgraph for snapping context
Was causing crashes once attempting to use snapping.
Reported by mano-wii in IRC, thanks!
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_walk.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index ef63f647ec8..6bbc0b7d985 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -602,7 +602,7 @@ static bool initWalkInfo(bContext *C, WalkInfo *walk, wmOperator *op) walk->rv3d->rflag |= RV3D_NAVIGATING; walk->snap_context = ED_transform_snap_object_context_create_view3d( - CTX_data_main(C), walk->scene, 0, + CTX_data_main(C), walk->scene, CTX_data_depsgraph(C), 0, walk->ar, walk->v3d); walk->v3d_camera_control = ED_view3d_cameracontrol_acquire( |