diff options
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_utils.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c index 09a3202c85e..9ce427fb830 100644 --- a/source/blender/editors/space_view3d/view3d_utils.c +++ b/source/blender/editors/space_view3d/view3d_utils.c @@ -71,10 +71,14 @@ * * \{ */ -float *ED_view3d_cursor3d_get(Scene *scene, View3D *v3d) +View3DCursor *ED_view3d_cursor3d_get(Scene *scene, View3D *v3d) { - if (v3d && v3d->localvd) return v3d->cursor; - else return scene->cursor; + if (v3d && v3d->localvd) { + return &v3d->cursor; + } + else { + return &scene->cursor; + } } Camera *ED_view3d_camera_data_get(View3D *v3d, RegionView3D *rv3d) |