Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / space_view3d / view3d_walk.c
index 44b7fadd29f25fd7851385b91f469914d8533a42..2f7893b9b83fe2358b24f604e4d52ac538a6e640 100644 (file)
@@ -58,6 +58,8 @@
 
 #include "GPU_immediate.h"
 
+#include "RE_engine.h"
+
 #include "view3d_intern.h"  /* own include */
 
 #ifdef WITH_INPUT_NDOF
@@ -249,6 +251,7 @@ typedef struct WalkInfo {
        ARegion *ar;
        Scene *scene;
        SceneLayer *scene_layer;
+       RenderEngineType *engine;
 
        wmTimer *timer; /* needed for redraws */
 
@@ -512,6 +515,7 @@ static bool initWalkInfo(bContext *C, WalkInfo *walk, wmOperator *op)
        walk->ar = CTX_wm_region(C);
        walk->scene = CTX_data_scene(C);
        walk->scene_layer = CTX_data_scene_layer(C);
+       walk->engine = CTX_data_engine(C);
 
 #ifdef NDOF_WALK_DEBUG
        puts("\n-- walk begin --");
@@ -600,7 +604,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, walk->scene_layer, 0,
+               CTX_data_main(C), walk->scene, walk->scene_layer, walk->engine, 0,
                walk->ar, walk->v3d);
 
        walk->v3d_camera_control = ED_view3d_cameracontrol_acquire(