Orientation for 3D cursor
[blender.git] / source / blender / editors / object / object_transform.c
index f3045d44826aa82e33f67fc99e4dd57fec80f8c2..0db880a22c6ca084a3bc8ba431e53cd746a1e756 100644 (file)
@@ -787,7 +787,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
        else {
                /* get the view settings if 'around' isn't set and the view is available */
                View3D *v3d = CTX_wm_view3d(C);
-               copy_v3_v3(cursor, ED_view3d_cursor3d_get(scene, v3d));
+               copy_v3_v3(cursor, ED_view3d_cursor3d_get(scene, v3d)->location);
                if (v3d && !RNA_struct_property_is_set(op->ptr, "center"))
                        around = v3d->around;
        }